mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +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
|
@ -172,6 +172,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;
|
||||
|
@ -203,6 +204,5 @@ function ($scope, $controller, DatatableService, EndpointProvider) {
|
|||
this.columnVisibility = storedColumnVisibility;
|
||||
this.columnVisibility.state.open = false;
|
||||
}
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
|
|
@ -108,6 +108,7 @@ angular.module('portainer.docker')
|
|||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
|
@ -135,7 +136,6 @@ angular.module('portainer.docker')
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}
|
||||
]);
|
||||
|
|
|
@ -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;
|
||||
|
@ -66,6 +67,5 @@ function ($scope, $controller, DatatableService) {
|
|||
}
|
||||
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
|
|
@ -19,6 +19,7 @@ angular.module('portainer.docker')
|
|||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
|
@ -45,7 +46,6 @@ angular.module('portainer.docker')
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}
|
||||
]);
|
|
@ -61,6 +61,7 @@ angular.module('portainer.docker')
|
|||
this.setDefaults();
|
||||
this.prepareTableFromDataset();
|
||||
|
||||
this.state.orderBy = this.orderBy;
|
||||
var storedOrder = DatatableService.getDataTableOrder(this.tableKey);
|
||||
if (storedOrder !== null) {
|
||||
this.state.reverseOrder = storedOrder.reverse;
|
||||
|
@ -87,7 +88,6 @@ angular.module('portainer.docker')
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}
|
||||
]);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}]);
|
||||
|
|
|
@ -16,6 +16,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;
|
||||
|
@ -42,6 +43,5 @@ function ($scope, $controller, DatatableService) {
|
|||
this.settings.open = false;
|
||||
}
|
||||
this.onSettingsRepeaterChange();
|
||||
this.state.orderBy = this.orderBy;
|
||||
};
|
||||
}]);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue