-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
role.hbs
44 lines (44 loc) · 1.37 KB
/
role.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<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>
<div class="toolbar-separator" />
{{/if}}
{{#if model.updatePath.canUpdate}}
<ToolbarLink
@params={{array "role.edit" this.scope this.role}}
data-test-kmip-link-edit-role
>
Edit role
</ToolbarLink>
{{/if}}
</ToolbarActions>
</Toolbar>
<div class="box is-fullwidth is-sideless is-shadowless">
<FieldGroupShow @model={{model}} @showAllFields={{false}} />
<div class="box is-fullwidth is-shadowless">
<h2 class="title is-5">
Allowed Operations
</h2>
<OperationFieldDisplay @model={{this.model}} />
</div>
</div>