mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(docker/services): get datas from local storage when auto refresh is enable
This commit is contained in:
parent
36fbaa9026
commit
51d584bb50
3 changed files with 25 additions and 12 deletions
|
@ -24,10 +24,6 @@ angular.module('portainer.docker').controller('ServicesDatatableController', [
|
|||
}
|
||||
};
|
||||
|
||||
this.onSettingsRepeaterChange = function () {
|
||||
DatatableService.setDataTableSettings(this.tableKey, this.settings);
|
||||
};
|
||||
|
||||
this.expandItem = function (item, expanded) {
|
||||
item.Expanded = expanded;
|
||||
if (item.Expanded) {
|
||||
|
@ -70,6 +66,13 @@ angular.module('portainer.docker').controller('ServicesDatatableController', [
|
|||
}
|
||||
};
|
||||
|
||||
this.onDataRefresh = function () {
|
||||
var storedExpandedItems = DatatableService.getDataTableExpandedItems(this.tableKey);
|
||||
if (storedExpandedItems !== null) {
|
||||
this.expandItems(storedExpandedItems);
|
||||
}
|
||||
};
|
||||
|
||||
this.$onInit = function () {
|
||||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue