mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
UI: Fix cancel button on role transform form (#19135)
This commit is contained in:
3
changelog/19135.txt
Normal file
3
changelog/19135.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui (enterprise): Fix cancel button from transform engine role creation page
|
||||||
|
```
|
||||||
@@ -58,7 +58,11 @@
|
|||||||
<MessageError @model={{this.model}} />
|
<MessageError @model={{this.model}} />
|
||||||
<NamespaceReminder @mode={{this.mode}} @noun="Transform role" />
|
<NamespaceReminder @mode={{this.mode}} @noun="Transform role" />
|
||||||
{{#each this.model.attrs as |attr|}}
|
{{#each this.model.attrs as |attr|}}
|
||||||
<FormField data-test-field @attr={{attr}} @model={{this.model}} />
|
{{#if (and (eq this.mode "edit") attr.options.readOnly)}}
|
||||||
|
<ReadonlyFormField @attr={{attr}} @value={{get this.model attr.name}} />
|
||||||
|
{{else}}
|
||||||
|
<FormField data-test-field @attr={{attr}} @model={{this.model}} />
|
||||||
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
<div class="field is-grouped-split box is-fullwidth is-bottomless">
|
<div class="field is-grouped-split box is-fullwidth is-bottomless">
|
||||||
@@ -75,13 +79,15 @@
|
|||||||
Save
|
Save
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</button>
|
</button>
|
||||||
<SecretLink
|
{{#if (eq this.mode "create")}}
|
||||||
@mode={{if (eq this.mode "create") "list" "show"}}
|
<LinkTo @route={{"vault.cluster.secrets.backend.list-root"}} @query={{hash tab="role"}} class="button">
|
||||||
class="button"
|
Cancel
|
||||||
@secret={{concat "role/" this.model.id}}
|
</LinkTo>
|
||||||
>
|
{{else if (eq this.mode "edit")}}
|
||||||
Cancel
|
<LinkTo @route="vault.cluster.secrets.backend.show" @model={{concat "role/" this.model.id}} class="button">
|
||||||
</SecretLink>
|
Cancel
|
||||||
|
</LinkTo>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user