mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
feat(service): rebase and recommit (#6245)
This commit is contained in:
parent
33a29159d2
commit
c30292cedd
2 changed files with 40 additions and 8 deletions
|
@ -14,6 +14,33 @@ angular.module('portainer.docker').controller('ServicesDatatableController', [
|
|||
expandedItems: [],
|
||||
});
|
||||
|
||||
this.columnVisibility = {
|
||||
columns: {
|
||||
image: {
|
||||
label: 'Image',
|
||||
display: true,
|
||||
},
|
||||
ownership: {
|
||||
label: 'OwnerShip',
|
||||
display: true,
|
||||
},
|
||||
ports: {
|
||||
label: 'Published Ports',
|
||||
display: true,
|
||||
},
|
||||
updated: {
|
||||
label: 'Last Update',
|
||||
display: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
this.onColumnVisibilityChange = onColumnVisibilityChange.bind(this);
|
||||
function onColumnVisibilityChange(columns) {
|
||||
this.columnVisibility.columns = columns;
|
||||
DatatableService.setColumnVisibilitySettings(this.tableKey, this.columnVisibility);
|
||||
}
|
||||
|
||||
this.expandAll = function () {
|
||||
this.state.expandAll = !this.state.expandAll;
|
||||
for (var i = 0; i < this.state.filteredDataSet.length; i++) {
|
||||
|
@ -107,6 +134,10 @@ angular.module('portainer.docker').controller('ServicesDatatableController', [
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
var storedColumnVisibility = DatatableService.getColumnVisibilitySettings(this.tableKey);
|
||||
if (storedColumnVisibility !== null) {
|
||||
this.columnVisibility = storedColumnVisibility;
|
||||
}
|
||||
};
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue