2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-05-11 14:13:24 -04:00
|
|
|
<Rose::Dropdown
|
2022-09-07 16:21:27 -04:00
|
|
|
@text={{t 'actions.manage'}}
|
2021-05-11 14:13:24 -04:00
|
|
|
@dropdownRight={{true}}
|
|
|
|
|
as |dropdown|
|
|
|
|
|
>
|
2021-09-28 14:09:11 -04:00
|
|
|
{{#if (can 'addHostSources target' @model)}}
|
|
|
|
|
<dropdown.link @route='scopes.scope.targets.target.add-host-sources'>
|
|
|
|
|
{{t 'resources.target.actions.add-host-sources'}}
|
2021-07-25 10:11:11 -04:00
|
|
|
</dropdown.link>
|
|
|
|
|
{{/if}}
|
2022-08-18 09:11:38 -07:00
|
|
|
{{#if (can 'addBrokeredCredentialSources target' @model)}}
|
|
|
|
|
<dropdown.link
|
|
|
|
|
@route='scopes.scope.targets.target.add-brokered-credential-sources'
|
|
|
|
|
>
|
|
|
|
|
{{t 'resources.target.actions.add-brokered-credential-sources'}}
|
2022-07-14 09:42:09 -05:00
|
|
|
</dropdown.link>
|
2021-09-28 14:09:11 -04:00
|
|
|
{{/if}}
|
2022-09-02 12:29:39 -07:00
|
|
|
|
|
|
|
|
{{#if (can 'addInjectedApplicationCredentialSources target' @model)}}
|
|
|
|
|
<dropdown.link
|
|
|
|
|
@route='scopes.scope.targets.target.add-injected-application-credential-sources'
|
|
|
|
|
>
|
|
|
|
|
{{t
|
|
|
|
|
'resources.target.actions.add-injected-application-credential-sources'
|
|
|
|
|
}}
|
|
|
|
|
</dropdown.link>
|
|
|
|
|
{{/if}}
|
2021-08-16 10:18:46 -07:00
|
|
|
{{#if (can 'delete model' @model)}}
|
|
|
|
|
<dropdown.separator />
|
|
|
|
|
<dropdown.button
|
|
|
|
|
@style='danger'
|
|
|
|
|
@disabled={{@model.canSave}}
|
|
|
|
|
{{on 'click' (route-action 'delete' @model)}}
|
|
|
|
|
>
|
|
|
|
|
{{t 'resources.target.actions.delete'}}
|
|
|
|
|
</dropdown.button>
|
|
|
|
|
{{/if}}
|
2022-10-06 11:41:12 -04:00
|
|
|
</Rose::Dropdown>
|