This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 2363d21383ec117bbcc853c94bc329c4dbce20e6
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Nov 21 17:45:47 2021 +0100

    save/load all display prefs
---
 webui/js/source/preferences.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/webui/js/source/preferences.js b/webui/js/source/preferences.js
index a309b0c..5ac8ef8 100644
--- a/webui/js/source/preferences.js
+++ b/webui/js/source/preferences.js
@@ -31,6 +31,12 @@ function init_preferences(state, json) {
             if (ljson.G_chatty_layout !== undefined) {
                 G_chatty_layout = ljson.G_chatty_layout;
             }
+            if (ljson.G_current_listmode !== undefined) {
+                G_current_listmode = ljson.G_current_listmode;
+            }
+            if (ljson.G_current_listmode_compact !== undefined) {
+                G_current_listmode_compact = ljson.G_current_listmode_compact;
+            }
         }
     }
 
@@ -120,7 +126,9 @@ function init_preferences(state, json) {
 function save_preferences() {
     if (G_can_store) {
         let ljson = {
-            G_chatty_layout: G_chatty_layout
+            G_chatty_layout: G_chatty_layout,
+            G_current_listmode: G_current_listmode,
+            G_current_listmode_compact: G_current_listmode_compact
         };
         let lstring = JSON.stringify(ljson);
         window.localStorage.setItem('G_ponymail_preferences', lstring);

Reply via email to