File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 disabled? : boolean ;
1717 leadingIcon? : ComponentType ;
1818 leadingHtml? : string ;
19+ badge? : string ;
1920 }[];
2021
2122 let element: HTMLSelectElement ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ type RegionOption = {
66 value : string ;
77 disabled : boolean ;
88 leadingHtml : string ;
9+ badge ?: string ;
910} ;
1011
1112export function filterRegions ( regions : Models . ConsoleRegion [ ] ) : RegionOption [ ] {
@@ -22,6 +23,7 @@ export function filterRegions(regions: Models.ConsoleRegion[]): RegionOption[] {
2223 label : region . name ,
2324 value : region . $id ,
2425 disabled : region . disabled || ! region . available ,
25- leadingHtml : `<img src='${ getFlagUrl ( region . flag ) } ' alt='Region flag'/>`
26+ leadingHtml : `<img src='${ getFlagUrl ( region . flag ) } ' alt='Region flag'/>` ,
27+ badge : region . disabled || ! region . available ? 'Coming soon' : undefined
2628 } ) ) ;
2729}
You can’t perform that action at this time.
0 commit comments