diff --git a/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries/index.js b/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries/index.js index ef7e6e66b..bfc92aa63 100644 --- a/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries/index.js +++ b/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries/index.js @@ -4,7 +4,9 @@ export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrari // =methods setupController(controller) { - const scope = this.modelFor('scopes.scope'); + const scope = this.modelFor( + 'scopes.scope.credential-stores.credential-store' + ); super.setupController(...arguments); controller.setProperties({ scope }); } diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs index ac3448ddd..d263c8a10 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/credential-store/credential-libraries/index.hbs @@ -57,7 +57,7 @@ (can 'list collection' this.scope collection='credential-libraries') }} {{! can list (at least): show default welcome message}} - {{t 'resources.credential-library.messages.none.description'}} + {{t 'resources.credential-library.description'}} {{else if (can 'create collection' this.scope collection='credential-libraries' @@ -76,12 +76,16 @@ {{/if}} - - - {{t 'titles.new'}} - + {{#if + (can 'create collection' this.scope collection='credential-libraries') + }} + + + {{t 'titles.new'}} + + {{/if}}