Browse Source

ui: Fix dropdown option duplications (#10706)

pull/10709/head
Kenia 3 years ago committed by GitHub
parent
commit
eb5512fb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .changelog/10706.txt
  2. 4
      ui/packages/consul-ui/app/components/consul/intention/form/fieldsets/index.hbs

3
.changelog/10706.txt

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix dropdown option duplication in the new intentions form
```

4
ui/packages/consul-ui/app/components/consul/intention/form/fieldsets/index.hbs

@ -39,7 +39,7 @@
@buildSuggestion={{action "createNewLabel" "Use a Consul Namespace called '{{term}}'"}}
@showCreateWhen={{action "isUnique" nspaces}}
@onCreate={{action onchange "SourceNS"}}
@onChange={{action onchange "SourceNS"}} as |nspace|>
@onChange={{fn (mut this.SourceNS)}} as |nspace|>
{{#if (eq nspace.Name '*') }}
* (All Namespaces)
{{else}}
@ -88,7 +88,7 @@
@buildSuggestion={{action "createNewLabel" "Use a future Consul Namespace called '{{term}}'"}}
@showCreateWhen={{action "isUnique" nspaces}}
@onCreate={{action onchange "DestinationNS"}}
@onChange={{action onchange "DestinationNS"}} as |nspace|>
@onChange={{fn (mut this.DestinationNS)}} as |nspace|>
{{#if (eq nspace.Name '*') }}
* (All Namespaces)
{{else}}

Loading…
Cancel
Save