File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/routes/(console)/organization-[organization]/wizard Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 62
62
}
63
63
64
64
$ : notifications = prefs ?.notifications ?? [];
65
+
66
+ const sortedRegions = $regions .regions .sort ((regionA , regionB ) => {
67
+ if (regionA .disabled >= regionB .disabled ) {
68
+ return 1 ;
69
+ }
70
+ return - 1 ;
71
+ });
65
72
</script >
66
73
67
74
<WizardStep >
73
80
<ul
74
81
class =" grid-box u-margin-block-start-16"
75
82
style =" --p-grid-item-size:12em; --p-grid-item-size-small-screens:12rem; --grid-gap: 1rem;" >
76
- {#each $regions .regions .sort ((regionA , regionB ) => {
77
- if (regionA .disabled >= regionB .disabled ) {
78
- return 1 ;
79
- }
80
- return - 1 ;
81
- }) as region , index (region .$id )}
83
+ {#each sortedRegions as region , index (region .$id )}
82
84
<li >
83
85
<RegionCard
84
86
name =" region"
85
87
bind:group ={$createProject .region }
86
88
value ={region .$id }
87
- disabled ={! region .available }
89
+ disabled ={! region .available || region . disabled }
88
90
autofocus ={index === 0 }>
89
91
<div
90
92
class =" u-flex u-flex-vertical u-gap-8 u-justify-main-center u-cross-center u-margin-inline-auto" >
You can’t perform that action at this time.
0 commit comments