From dd91172b923e3483a7692442f6abf0b2cbe07cd9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 6 Feb 2018 02:44:48 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/config.js b/ui (gen4)/features/config.js index 2f14a9e2..d6c40f91 100755 --- a/ui (gen4)/features/config.js +++ b/ui (gen4)/features/config.js @@ -210,13 +210,18 @@ module.Store = core.ImageGridFeatures.Feature({ // XXX we should have a separate store config with settings of how to // load the store... (???) var StoreLocalStorageActions = actions.Actions({ + config: { + // XXX + 'store-root-key': 'test-store-root-key', + }, + // XXX get root key from config... // ...this would require us to store the store config separately... localStorageDataHandler: ['- Store/', {handle_data_store: 'localStorage',}, function(data){ // XXX get this from config... - var root = 'test-store-root-key' + var root = this.config['store-root-key'] // clear... if(data === null){ @@ -236,7 +241,7 @@ var StoreLocalStorageActions = actions.Actions({ {handle_data_store: 'sessionStorage',}, function(data){ // XXX get this from config... - var root = 'test-store-root-key' + var root = this.config['store-root-key'] // clear... if(data === null){