ddf8c20219
* add menu-loader component to show menu loading button when the model relationship isPending * list what keys we've got in api-path error * fix spacing issue on error flash * add an action on list-controller that bubbles to the list-route mixin to refresh the route * empty store when creating scopes * don't delete _requestQuery in the loop, do it after * add scope deletion from the scope list * add deleteRecord to kmip adapters * add model-wrap component * delete role from detail page and list * add revoke credentials functionality * fix comment * treat all operations fields specially on kmip roles * adjust kmip role edit form for new fields * fix api-path test * update document blocks for menu-loader and model-wrap components
37 lines
1.1 KiB
Handlebars
37 lines
1.1 KiB
Handlebars
<HeaderCredentials @role={{this.role}} @scope={{this.scope}} />
|
|
<Toolbar>
|
|
<ToolbarActions>
|
|
{{#if model.updatePath.canUpdate}}
|
|
<ModelWrap as |m|>
|
|
<ConfirmAction
|
|
@buttonClasses="toolbar-link"
|
|
@onConfirmAction={{action
|
|
(perform
|
|
m.callMethod
|
|
"destroyRecord"
|
|
model
|
|
(concat "Successfully deleted role " model.id)
|
|
(concat "There was an error deleting the role " model.id)
|
|
(transition-to "vault.cluster.secrets.backend.kmip.scope.roles" this.scope)
|
|
)
|
|
}}
|
|
@confirmMessage={{concat "Are you sure you want to delete " model.id "?"}}
|
|
@cancelButtonText="Cancel"
|
|
>
|
|
Delete role
|
|
</ConfirmAction>
|
|
</ModelWrap>
|
|
{{/if}}
|
|
{{#if model.updatePath.canUpdate}}
|
|
<ToolbarLink
|
|
@params={{array "role.edit" this.scope this.role}}
|
|
>
|
|
Edit role
|
|
</ToolbarLink>
|
|
{{/if}}
|
|
</ToolbarActions>
|
|
</Toolbar>
|
|
<div class="box is-fullwidth is-sideless is-shadowless">
|
|
<FieldGroupShow @model={{model}} @showAllFields={{false}} />
|
|
</div>
|