fix(docker/services): save the settings of the table for auto refresh (#282)

This commit is contained in:
Dmitry Salakhov
2021-04-27 12:51:12 +12:00
committed by GitHub
parent e3ae899a5a
commit 7d5641860a
3 changed files with 25 additions and 8 deletions
@@ -66,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();