Files
threshold-ui/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs
T

34 lines
1.0 KiB
Handlebars
Raw Normal View History

2020-09-14 15:58:06 -04:00
<Rose::Dropdown @text="{{t 'actions.manage'}}" @dropdownRight={{true}} as |dropdown|>
2021-03-26 12:47:49 -04:00
{{#if (feature-flag 'primary-auth-method')}}
{{#unless @model.isPrimary}}
<dropdown.button
@disabled={{@model.canSave}}
{{on "click" (route-action "makePrimary" @model)}}
>
{{t 'resources.auth-method.actions.make-primary'}}
</dropdown.button>
{{/unless}}
{{#if @model.isPrimary}}
<dropdown.button
@disabled={{@model.canSave}}
{{on "click" (route-action "removeAsPrimary" @model)}}
>
{{t 'resources.auth-method.actions.remove-as-primary'}}
</dropdown.button>
{{/if}}
{{/if}}
2020-09-14 17:43:07 -04:00
<dropdown.link
@route="scopes.scope.auth-methods.auth-method.accounts.new"
@model={{@model}}
>
{{t "resources.account.actions.create"}}
2020-09-14 17:43:07 -04:00
</dropdown.link>
2020-10-07 11:22:41 -04:00
<dropdown.separator />
2020-09-14 15:58:06 -04:00
<dropdown.button
@style="danger"
@disabled={{@model.canSave}}
{{on "click" (route-action "delete" @model)}}
>
{{t 'resources.auth-method.actions.delete'}}
2020-09-14 15:58:06 -04:00
</dropdown.button>
</Rose::Dropdown>