* refactor: 💡 remove route-action usage for users ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12612
26 lines
640 B
Handlebars
26 lines
640 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<Rose::Dropdown
|
|
@text={{t 'actions.manage'}}
|
|
@dropdownRight={{true}}
|
|
as |dropdown|
|
|
>
|
|
{{#if (can 'addAccounts user' @model)}}
|
|
<dropdown.link @route='scopes.scope.users.user.add-accounts'>
|
|
{{t 'resources.user.actions.add-accounts'}}
|
|
</dropdown.link>
|
|
{{/if}}
|
|
{{#if (can 'delete model' @model)}}
|
|
<dropdown.separator />
|
|
<dropdown.button
|
|
@style='danger'
|
|
@disabled={{@model.canSave}}
|
|
{{on 'click' (fn @delete @model)}}
|
|
>
|
|
{{t 'resources.user.actions.delete'}}
|
|
</dropdown.button>
|
|
{{/if}}
|
|
</Rose::Dropdown> |