From 594f951ca7371a3f1b969ac42d9a4cbcfc5ce666 Mon Sep 17 00:00:00 2001 From: dharini Date: Thu, 2 Sep 2021 12:16:45 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20scope=20route=20for=20cre?= =?UTF-8?q?ate=20collection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../credential-libraries/index.js | 4 +++- .../credential-libraries/index.hbs | 18 +++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) 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}}