vault/ui/app/components/mfa/method-form.hbs
Vault Automation 0a27857988
[UI] Ember Data Migration - MFA (#14721) (#14894)
* Update mfa index route beforeModel to use api instead of store

* MFA form...

* Remove mfa method

* WIP

* first arg..

* Working form submit

* Working create forms..

* Put model back in original state..

* Working edit

* Update methods list

* Working detail..

* Working infotablerows

* Use form arg instead of model

* Set up new enforcements form

* MFA enforcement...

* Update remaining pages...

* Add more util helpers

* Refactor

* Update targets initial values

* Update targets to use api

* Update useExisting

* Patch SearchSelect and fix mfa-login-enforcement-form test

* Some more tests fixed..

* Working mfa-method tests

* Passing method-form-test

* Update editDisabled

* Address feedback..

* Add attribute to data for display

* Update displayFields

* Add defaultValue

* Update tests..

* Conditionally show onClose

* Add defaultvalue

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-05-20 13:36:35 +00:00

37 lines
No EOL
1.2 KiB
Handlebars

{{!
Copyright IBM Corp. 2016, 2025
SPDX-License-Identifier: BUSL-1.1
}}
<div class="box is-sideless is-fullwidth is-marginless" ...attributes>
{{#each @form.formFields as |field|}}
<FormField @attr={{field}} @model={{@form}} @modelValidations={{@validations}} />
{{/each}}
</div>
{{#if @hasActions}}
<div class="field is-grouped-split box is-fullwidth is-bottomless">
<Hds::ButtonSet>
<Hds::Button
@text="Save"
@icon={{if this.save.isRunning "loading"}}
{{on "click" this.initSave}}
disabled={{this.save.isRunning}}
data-test-mfa-save
/>
<Hds::Button @text="Cancel" @color="secondary" disabled={{this.save.isRunning}} {{on "click" this.cancel}} />
</Hds::ButtonSet>
</div>
{{/if}}
<ConfirmationModal
@title="Edit {{@form.type}} configuration?"
@onClose={{action (mut this.isEditModalActive) false}}
@isActive={{this.isEditModalActive}}
@confirmText={{@form.type}}
@onConfirm={{perform this.save}}
>
<p>
Editing this configuration will have an impact on all authentication types, methods, groups and entities which make use
of this MFA method. Please make sure you want to make these changes before doing so.
</p>
</ConfirmationModal>