24 lines
670 B
Handlebars
24 lines
670 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
<Hds::Dropdown data-test-manage-user-dropdown as |dd|>
|
|
<dd.ToggleButton @text={{t 'actions.manage'}} @color='secondary' />
|
|
|
|
{{#if (can 'addAccounts user' @model)}}
|
|
<dd.Interactive @route='scopes.scope.users.user.add-accounts'>
|
|
{{t 'resources.user.actions.add-accounts'}}
|
|
</dd.Interactive>
|
|
{{/if}}
|
|
|
|
{{#if (can 'delete model' @model)}}
|
|
<dd.Separator />
|
|
<dd.Interactive
|
|
@color='critical'
|
|
@disabled={{@model.canSave}}
|
|
{{on 'click' (fn @delete @model)}}
|
|
>
|
|
{{t 'resources.user.actions.delete'}}
|
|
</dd.Interactive>
|
|
{{/if}}
|
|
</Hds::Dropdown> |