mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 15:25:22 +02:00
feat(containers): add column visibility dropdown in containers view (#1977)
This commit is contained in:
parent
863d917acc
commit
50020dae89
5 changed files with 146 additions and 16 deletions
|
@ -37,6 +37,10 @@ function DatatableServiceFactory(LocalStorage) {
|
|||
LocalStorage.storeDataTableExpandedItems(key, expandedItems);
|
||||
};
|
||||
|
||||
service.setColumnVisibilitySettings = function(key, columnVisibility) {
|
||||
LocalStorage.storeColumnVisibilitySettings(key, columnVisibility);
|
||||
};
|
||||
|
||||
service.getDataTableExpandedItems = function(key) {
|
||||
return LocalStorage.getDataTableExpandedItems(key);
|
||||
};
|
||||
|
@ -49,5 +53,9 @@ function DatatableServiceFactory(LocalStorage) {
|
|||
return LocalStorage.getDataTableSelectedItems(key);
|
||||
};
|
||||
|
||||
service.getColumnVisibilitySettings = function(key) {
|
||||
return LocalStorage.getColumnVisibilitySettings(key);
|
||||
};
|
||||
|
||||
return service;
|
||||
}]);
|
||||
|
|
|
@ -77,6 +77,12 @@ angular.module('portainer.app')
|
|||
getSwarmVisualizerSettings: function(key) {
|
||||
return localStorageService.get('swarmvisualizer_' + key);
|
||||
},
|
||||
storeColumnVisibilitySettings: function(key, data) {
|
||||
localStorageService.set('col_visibility_' + key, data);
|
||||
},
|
||||
getColumnVisibilitySettings: function(key) {
|
||||
return localStorageService.get('col_visibility_' + key);
|
||||
},
|
||||
clean: function() {
|
||||
localStorageService.clearAll();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue