open-vault/ui/app/templates/components/auth-form-options.hbs

29 lines
919 B
Handlebars

{{#unless this.selectedAuthIsPath}}
<div class="box has-slim-padding is-shadowless">
<ToggleButton @isOpen={{this.isOpen}} @onClick={{fn (mut this.isOpen)}} data-test-auth-form-options-toggle />
{{#if this.isOpen}}
<div class="field">
<label for="custom-path" class="is-label">
Mount path
</label>
<div class="control">
<input
type="text"
name="custom-path"
id="custom-path"
class="input"
value={{@customPath}}
oninput={{action @onPathChange value="target.value"}}
data-test-auth-form-mount-path
/>
</div>
<AlertInline
@sizeSmall={{true}}
@paddingTop={{true}}
@type="info"
@message="If this backend was mounted using a non-default path, enter it here."
/>
</div>
{{/if}}
</div>
{{/unless}}