open-vault/ui/app/templates/components/auth-config-form/options.hbs
Angel Garbarino 9749d7d9c6
Bug Fix: Show Error messages on Auth Configuration page (#8500)
* manually trigger error handler

* add a catch

* remove uneeded return
2020-03-09 12:31:21 -06:00

19 lines
660 B
Handlebars

<form {{action (perform saveModel) on="submit"}}>
<div class="box is-sideless is-fullwidth is-marginless">
<MessageError @model={{model}} @errorMessage={{model.errorMessage}}/>
<NamespaceReminder @mode="save" @noun="Auth Method" />
{{#each model.tuneAttrs as |attr|}}
{{form-field data-test-field attr=attr model=model}}
{{/each}}
</div>
<div class="field is-grouped box is-fullwidth is-bottomless">
<button
type="submit"
data-test-save-config="true"
class="button is-primary {{if saveModel.isRunning "loading"}}"
disabled={{saveModel.isRunning}}
>
Update Options
</button>
</div>
</form>