mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
fix(datatables): saved orderBy was always overridden by the default one (#3052)
This commit is contained in:
@@ -39,6 +39,7 @@ function ($scope, $controller, DatatableService) {
|
||||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
@@ -65,6 +66,5 @@ function ($scope, $controller, DatatableService) {
|
||||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user