feat: 🎸 cred store capabilities
This commit is contained in:
1 parent
858a3420e1
commit
876fc0c71f
8 files changed
+413
-199
No files matched your search
@@ -233,11 +233,12 @@
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.textarea>
|
||||
|
||||
<form.actions
|
||||
@disabled={{if @model.cannotSave @model.cannotSave}}
|
||||
@enableEditText={{t 'actions.edit-form'}}
|
||||
@submitText={{t 'actions.save'}}
|
||||
@cancelText={{t 'actions.cancel'}}
|
||||
/>
|
||||
{{#if (can 'save model' @model)}}
|
||||
<form.actions
|
||||
@disabled={{if @model.cannotSave @model.cannotSave}}
|
||||
@enableEditText={{t 'actions.edit-form'}}
|
||||
@submitText={{t 'actions.save'}}
|
||||
@cancelText={{t 'actions.cancel'}}
|
||||
/>
|
||||
{{/if}}
|
||||
</Rose::Form>
|
||||
+10
-8
@@ -9,12 +9,14 @@
|
||||
>
|
||||
{{t 'resources.credential-library.actions.create'}}
|
||||
</dropdown.link>
|
||||
<dropdown.separator />
|
||||
<dropdown.button
|
||||
@style='danger'
|
||||
@disabled={{@model.canSave}}
|
||||
{{on 'click' (route-action 'delete' @model)}}
|
||||
>
|
||||
{{t 'resources.credential-store.actions.delete'}}
|
||||
</dropdown.button>
|
||||
{{#if (can 'delete model' @model)}}
|
||||
<dropdown.separator />
|
||||
<dropdown.button
|
||||
@style='danger'
|
||||
@disabled={{@model.canSave}}
|
||||
{{on 'click' (route-action 'delete' @model)}}
|
||||
>
|
||||
{{t 'resources.credential-store.actions.delete'}}
|
||||
</dropdown.button>
|
||||
{{/if}}
|
||||
</Rose::Dropdown>
|
||||
@@ -39,12 +39,16 @@
|
||||
{{#each @model as |credentialStore|}}
|
||||
<body.row as |row|>
|
||||
<row.headerCell>
|
||||
<LinkTo
|
||||
@route='scopes.scope.credential-stores.credential-store'
|
||||
@model={{credentialStore.id}}
|
||||
>
|
||||
{{#if (can 'read model' credentialStore)}}
|
||||
<LinkTo
|
||||
@route='scopes.scope.credential-stores.credential-store'
|
||||
@model={{credentialStore.id}}
|
||||
>
|
||||
{{credentialStore.displayName}}
|
||||
</LinkTo>
|
||||
{{else}}
|
||||
{{credentialStore.displayName}}
|
||||
</LinkTo>
|
||||
{{/if}}
|
||||
<p>{{credentialStore.description}}</p>
|
||||
</row.headerCell>
|
||||
<row.cell>
|
||||
|
||||
Reference in new issue
Block a user