2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
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|
|
|
|
|
|
>
|
2021-10-01 14:19:06 -04:00
|
|
|
{{#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>
|