fix(datatables): saved orderBy was always overridden by the default one (#3052)

This commit is contained in:
xAt0mZ
2019-08-12 16:25:35 +02:00
committed by GitHub
parent 3afeb13891
commit 24013bc524
14 changed files with 14 additions and 14 deletions

View File

@@ -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;
};
}
]);