mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
Merge pull request #4766 from portainer/fix/GH/3068-fix-auto-refresh-collapse
fix(docker/services): save the settings of the table for auto refresh
This commit is contained in:
commit
bc459b55ae
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue