Files
threshold-ui/ui/admin/app/components/targets/target/actions/index.hbs
T
Dharini Jeeva 9a8665a314 Refactor credential sources to brokered credential sources (#1264)
* chore: 🤖 refactor credential sources to brokered credential source
2022-08-18 09:11:38 -07:00

28 lines
861 B
Handlebars

<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 '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>