fix: numbered cloud region options [1] US [2] EU for quick selection
This commit is contained in:
parent
91add96b7d
commit
a6e12d54cc
1 changed files with 2 additions and 2 deletions
|
|
@ -210,10 +210,10 @@ func runDeployForm() (state.State, error) {
|
|||
// Step 1: Cloud region
|
||||
regionOptions := []huh.Option[string]{}
|
||||
if preflightResult.USReachable {
|
||||
regionOptions = append(regionOptions, huh.NewOption("US (us1.api.wallarm.com)", "US"))
|
||||
regionOptions = append(regionOptions, huh.NewOption("[1] US (us1.api.wallarm.com)", "US"))
|
||||
}
|
||||
if preflightResult.EUReachable {
|
||||
regionOptions = append(regionOptions, huh.NewOption("EU (api.wallarm.com)", "EU"))
|
||||
regionOptions = append(regionOptions, huh.NewOption("[2] EU (api.wallarm.com)", "EU"))
|
||||
}
|
||||
|
||||
if len(regionOptions) == 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue