-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dedicated): sort disk list on installation
ref: MANAGER-11948 Signed-off-by: Bruno MARQUES <[email protected]>
- Loading branch information
1 parent
218c88c
commit 2a8eff7
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
...apps/dedicated/client/app/dedicated/server/install/image/components/options/controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
export default class DedicatedServerInstallImageOptionsCtrl { | ||
$onInit() { | ||
[this.model.diskGroup] = this.server.hardware.specifications.diskGroups; | ||
[this.model.diskGroup] = !this.server.hardware.specifications.diskGroups | ||
? [] | ||
: this.server.hardware.specifications.diskGroups.sort((a, b) => | ||
a.description.localeCompare(b.description), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters