2019-06-21 21:05:45 +00:00
|
|
|
<HeaderCredentials @role={{this.role}} @scope={{this.scope}} />
|
|
|
|
<Toolbar>
|
|
|
|
<ToolbarActions>
|
2019-07-02 21:23:07 +00:00
|
|
|
{{#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}}
|
2019-08-01 21:04:59 +00:00
|
|
|
data-test-kmip-link-edit-role
|
2019-07-02 21:23:07 +00:00
|
|
|
>
|
|
|
|
Edit role
|
|
|
|
</ToolbarLink>
|
|
|
|
{{/if}}
|
2019-06-21 21:05:45 +00:00
|
|
|
</ToolbarActions>
|
|
|
|
</Toolbar>
|
|
|
|
<div class="box is-fullwidth is-sideless is-shadowless">
|
|
|
|
<FieldGroupShow @model={{model}} @showAllFields={{false}} />
|
2019-07-23 21:00:00 +00:00
|
|
|
<div class="box is-fullwidth is-shadowless">
|
|
|
|
<h2 class="title is-5">
|
|
|
|
Allowed Operations
|
|
|
|
</h2>
|
|
|
|
<OperationFieldDisplay @model={{this.model}} />
|
|
|
|
</div>
|
2019-06-21 21:05:45 +00:00
|
|
|
</div>
|