fix: 🐛 update const name

This commit is contained in:
dharini committed 2021-09-02 14:10:54 -07:00
1 parent 2bbbceb9d9
commit d8aca33fcd
3 files changed
+18 -8

No files matched your search

@@ -14,12 +14,12 @@ export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrari
* @return {Promise{[CredentialLibraryModel]}}
*/
model() {
const scope = this.modelFor(
const credentialStore = this.modelFor(
'scopes.scope.credential-stores.credential-store'
);
const { id: credential_store_id } = scope;
const { id: credential_store_id } = credentialStore;
if (
this.can.can('list collection', scope, {
this.can.can('list collection', credentialStore, {
collection: 'credential-libraries',
})
) {
@@ -4,10 +4,10 @@ export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrari
// =methods
setupController(controller) {
const scope = this.modelFor(
const credentialStore = this.modelFor(
'scopes.scope.credential-stores.credential-store'
);
super.setupController(...arguments);
controller.setProperties({ scope });
controller.setProperties({ credentialStore });
}
}
@@ -54,13 +54,19 @@
>
<message.description>
{{#if
(can 'list collection' this.scope collection='credential-libraries')
(can
'list collection'
this.credentialStore
collection='credential-libraries'
)
}}
{{! can list (at least): show default welcome message}}
{{t 'resources.credential-library.description'}}
{{else if (can
'create collection' this.scope collection='credential-libraries'
'create collection'
this.credentialStore
collection='credential-libraries'
)}}
{{! can create (only): show create-but-not-list welcome message}}
{{t
@@ -77,7 +83,11 @@
</message.description>
{{#if
(can 'create collection' this.scope collection='credential-libraries')
(can
'create collection'
this.credentialStore
collection='credential-libraries'
)
}}
<message.link
@route='scopes.scope.credential-stores.credential-store.credential-libraries.new'