Files
threshold-ui/ui/admin/app/components/users/user/actions/index.hbs
T

26 lines
650 B
Handlebars
Raw Normal View History

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
2021-08-17 11:06:57 -07:00
<Rose::Dropdown
2022-09-07 16:21:27 -04:00
@text={{t 'actions.manage'}}
2021-08-17 11:06:57 -07:00
@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}}
2021-08-17 11:06:57 -07:00
{{#if (can 'delete model' @model)}}
2021-08-11 13:51:18 -07:00
<dropdown.separator />
<dropdown.button
@style='danger'
@disabled={{@model.canSave}}
{{on 'click' (route-action 'delete' @model)}}
>
{{t 'resources.user.actions.delete'}}
</dropdown.button>
2021-08-17 11:06:57 -07:00
{{/if}}
2022-10-06 11:41:12 -04:00
</Rose::Dropdown>