mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
feat(swarm-visualizer): save settings to local storage (#1777)
This commit is contained in:
parent
216d6c2b14
commit
2a9ba1f9a2
3 changed files with 38 additions and 6 deletions
|
@ -59,6 +59,12 @@ angular.module('portainer.app')
|
|||
storeDataTableSettings: function(key, data) {
|
||||
localStorageService.set('datatable_settings_' + key, data);
|
||||
},
|
||||
storeSwarmVisualizerSettings: function(key, data) {
|
||||
localStorageService.set('swarmvisualizer_' + key, data);
|
||||
},
|
||||
getSwarmVisualizerSettings: function(key) {
|
||||
return localStorageService.get('swarmvisualizer_' + key);
|
||||
},
|
||||
clean: function() {
|
||||
localStorageService.clearAll();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue