{{#if showEnable}} {{#with (find-by "type" mountModel.type mountTypes) as |typeInfo|}} {{#if (eq mountType "auth")}} {{concat "Enable " typeInfo.displayName " authentication method"}} {{else}} {{concat "Enable " typeInfo.displayName "secrets engine"}} {{/if}} {{/with}} {{else if (eq mountType "auth")}} Enable an authentication method {{else}} Enable a secrets engine {{/if}}

{{message-error model=mountModel}} {{#if showEnable}} {{form-field-groups model=mountModel onChange=(action "onTypeChange") renderGroup="default" }} {{form-field-groups model=mountModel onChange=(action "onTypeChange") renderGroup="Method Options" }} {{else}} {{#each (array "generic" "cloud" "infra") as |category|}}

{{capitalize category}}

{{#each (filter-by "category" category mountTypes) as |type|}} {{/each}}
{{/each}} {{/if}}
{{#if showEnable}}
{{else}} {{/if}}