* feat: 🎸 add filtering and pagination to scopes ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13302
45 lines
1.3 KiB
Handlebars
45 lines
1.3 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'
|
|
data-test-add-brokered-cred-sources-action
|
|
>
|
|
{{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'
|
|
data-test-add-injected-cred-sources-action
|
|
>
|
|
{{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> |