1
0
Fork 0
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:
alice groux 2021-01-27 16:10:49 +01:00
parent 36fbaa9026
commit 51d584bb50
3 changed files with 25 additions and 12 deletions

View file

@ -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();