mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
fix(datatables): saved orderBy was always overridden by the default one (#3052)
This commit is contained in:
parent
3afeb13891
commit
24013bc524
14 changed files with 14 additions and 14 deletions
|
@ -68,6 +68,7 @@ function ($scope, $controller, DatatableService, EndpointProvider) {
|
|||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
|
@ -99,6 +100,5 @@ function ($scope, $controller, DatatableService, EndpointProvider) {
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue