* [COMPLIANCE] Add Copyright and License Headers * chore: 🤖 update Copyright headers to satisfy our lint rules --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
43 lines
1.2 KiB
Handlebars
43 lines
1.2 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
<Rose::Dropdown
|
|
@text={{t 'actions.manage'}}
|
|
@dropdownRight={{true}}
|
|
as |dropdown|
|
|
>
|
|
{{#if (can 'addHostSources target' @model)}}
|
|
<dropdown.link @route='scopes.scope.targets.target.add-host-sources'>
|
|
{{t 'resources.target.actions.add-host-sources'}}
|
|
</dropdown.link>
|
|
{{/if}}
|
|
{{#if (can 'addBrokeredCredentialSources target' @model)}}
|
|
<dropdown.link
|
|
@route='scopes.scope.targets.target.add-brokered-credential-sources'
|
|
>
|
|
{{t 'resources.target.actions.add-brokered-credential-sources'}}
|
|
</dropdown.link>
|
|
{{/if}}
|
|
|
|
{{#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}}
|
|
{{#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}}
|
|
</Rose::Dropdown> |