ui: List Primary and Local DCs first in the Datacenter selector (#12478)

This commit is contained in:
John Cowen 2022-03-07 10:54:12 +00:00 committed by GitHub
parent b525389286
commit 19fe3e14d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/12478.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
ui: In the datacenter selector order Datacenters by Primary, Local then alpanumerically
```

View File

@ -4,7 +4,7 @@
>
<DisclosureMenu
aria-label="Datacenter"
@items={{sort-by 'Name' @dcs}}
@items={{sort-by 'Primary:desc' 'Local:desc' 'Name:asc' @dcs}}
as |disclosure|>
<disclosure.Action
{{on 'click' disclosure.toggle}}