Skip to content
Snippets Groups Projects
Commit 95116318 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[enh] Allow to persist cache to local storage

[fix] Make sure to update all params, in window.location.href when searching on last records
parent 395da4b2
No related branches found
No related tags found
No related merge requests found
Pipeline #9636 failed
...@@ -11,7 +11,8 @@ angular.module('cesium.cache.services', ['angular-cache']) ...@@ -11,7 +11,8 @@ angular.module('cesium.cache.services', ['angular-cache'])
SHORT: csSettings.defaultSettings.cacheTimeMs // around 1min SHORT: csSettings.defaultSettings.cacheTimeMs // around 1min
}, },
storageMode = getSettingsStorageMode(), storageMode = getSettingsStorageMode(),
cacheNames = [] cacheNames = [],
listeners = []
; ;
function getSettingsStorageMode(settings) { function getSettingsStorageMode(settings) {
...@@ -100,7 +101,7 @@ angular.module('cesium.cache.services', ['angular-cache']) ...@@ -100,7 +101,7 @@ angular.module('cesium.cache.services', ['angular-cache'])
function addListeners() { function addListeners() {
listeners = [ listeners = [
// Listen if node changed // Listen for settings changed (e.g. the storage mode)
csSettings.api.data.on.changed($rootScope, onSettingsChanged, this) csSettings.api.data.on.changed($rootScope, onSettingsChanged, this)
]; ];
} }
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</label> </label>
</div> </div>
<!-- Block validity window--> <!-- Block validity window -->
<label class="item item-input item-select item-text-wrap"> <label class="item item-input item-select item-text-wrap">
<div class="input-label hidden-xs"> <div class="input-label hidden-xs">
<span translate>SETTINGS.BLOCK_VALIDITY_WINDOW</span> <span translate>SETTINGS.BLOCK_VALIDITY_WINDOW</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment