Skip to content
Snippets Groups Projects
Commit 4c1de35a authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Sorting planes keys before making checkboxes

parent e027596a
No related branches found
No related tags found
2 merge requests!32Merge 2.4.4 UI to main,!29WS-2903 Sort tiles and planes checkboxes
......@@ -72,7 +72,9 @@ export class ExecutionDetailComponent implements OnInit, OnDestroy, OnChanges {
}
if (this.canSelectPlanes()) {
this.jobService.getPlanes(job.job_id).subscribe((response: object) => {
this.planeKeys = Object.keys(response);
// Sort the returned planes before making form controls from them
this.planeKeys = Object.keys(response)
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }));
for (const controlName in this.planesFormGroup.controls) {
this.planesFormGroup.removeControl(controlName);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment