refactor: 💡 Edit a credentail (#1218)
Password input field is now only viewable after user clicks on "Edit
Form"
✅ Closes: ICU-5180
This commit is contained in:
1 parent
409e68de1e
commit
40ba4286d3
1 file changed
+23
@@ -105,6 +105,29 @@
|
||||
{{/if}}
|
||||
</form.input>
|
||||
{{/if}}
|
||||
|
||||
{{#if form.isEditable}}
|
||||
<form.input
|
||||
@name='password'
|
||||
@type='password'
|
||||
@value={{@model.password}}
|
||||
@label={{t 'form.password.label'}}
|
||||
@error={{@model.errors.password}}
|
||||
@helperText={{t 'resources.credential.help.password'}}
|
||||
disabled={{@model.isSaving}}
|
||||
readonly={{false}}
|
||||
as |field|
|
||||
>
|
||||
{{#if @model.errors.password}}
|
||||
<field.errors as |errors|>
|
||||
{{#each @model.errors.password as |error|}}
|
||||
<errors.message>{{error.message}}</errors.message>
|
||||
{{/each}}
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.input>
|
||||
{{/if}}
|
||||
|
||||
{{#if (can 'save model' @model)}}
|
||||
<form.actions
|
||||
@disabled={{if @model.cannotSave @model.cannotSave}}
|
||||
|
||||
Reference in new issue
Block a user