diff --git a/plugin/webview/src/q-ui/components/ssoLoginForm.vue b/plugin/webview/src/q-ui/components/ssoLoginForm.vue index 92227fcb5..1dedaf8ba 100644 --- a/plugin/webview/src/q-ui/components/ssoLoginForm.vue +++ b/plugin/webview/src/q-ui/components/ssoLoginForm.vue @@ -41,7 +41,7 @@ @change="handleRegionInput" tabindex="0" > - @@ -74,6 +74,14 @@ export default defineComponent({ } }, computed: { + sortedRegions() { + const usEast1 = this.regions.find(r => r.id === 'us-east-1'); + const otherRegions = this.regions + .filter(r => r.id !== 'us-east-1') + .sort((a, b) => a.name.localeCompare(b.name)); + + return usEast1 ? [usEast1, ...otherRegions] : otherRegions; + }, regions(): Region[] { return this.$store.state.ssoRegions },