From 9ad8eb93c7bc398309e14e65907ef1411d0d6000 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Thu, 14 Jul 2022 09:42:09 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Remove=20credential-?= =?UTF-8?q?store=20feature=20flag=20references=20(#1188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/components/targets/target/actions/index.hbs | 12 ++++-------- ui/admin/app/components/targets/target/nav/index.hbs | 8 +++----- ui/admin/app/templates/scopes/scope.hbs | 10 ++++------ ui/admin/config/environment.js | 1 - ui/desktop/config/environment.js | 1 - 5 files changed, 11 insertions(+), 21 deletions(-) diff --git a/ui/admin/app/components/targets/target/actions/index.hbs b/ui/admin/app/components/targets/target/actions/index.hbs index 064bdff34..793b422d7 100644 --- a/ui/admin/app/components/targets/target/actions/index.hbs +++ b/ui/admin/app/components/targets/target/actions/index.hbs @@ -8,14 +8,10 @@ {{t 'resources.target.actions.add-host-sources'}} {{/if}} - {{#if (feature-flag 'credential-store')}} - {{#if (can 'addCredentialSources target' @model)}} - - {{t 'resources.target.actions.add-credential-sources'}} - - {{/if}} + {{#if (can 'addCredentialSources target' @model)}} + + {{t 'resources.target.actions.add-credential-sources'}} + {{/if}} {{#if (can 'delete model' @model)}} diff --git a/ui/admin/app/components/targets/target/nav/index.hbs b/ui/admin/app/components/targets/target/nav/index.hbs index 8d35a9f03..36f07e944 100644 --- a/ui/admin/app/components/targets/target/nav/index.hbs +++ b/ui/admin/app/components/targets/target/nav/index.hbs @@ -5,9 +5,7 @@ {{t 'resources.target.host-source.title_plural'}} - {{#if (feature-flag 'credential-store')}} - - {{t 'resources.target.credential-source.title_plural'}} - - {{/if}} + + {{t 'resources.target.credential-source.title_plural'}} + \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope.hbs b/ui/admin/app/templates/scopes/scope.hbs index 89dff80d2..20ad15e36 100644 --- a/ui/admin/app/templates/scopes/scope.hbs +++ b/ui/admin/app/templates/scopes/scope.hbs @@ -99,12 +99,10 @@ {{/if}} {{#if (can 'navigate model' @model collection='credential-stores')}} - {{#if (feature-flag 'credential-store')}} - - - {{t 'resources.credential-store.title_plural'}} - - {{/if}} + + + {{t 'resources.credential-store.title_plural'}} + {{/if}} {{/if}} diff --git a/ui/admin/config/environment.js b/ui/admin/config/environment.js index 8b479f0ba..f1a531361 100644 --- a/ui/admin/config/environment.js +++ b/ui/admin/config/environment.js @@ -13,7 +13,6 @@ const featureEditions = { 'oidc-account-crud': true, search: false, filter: true, - 'credential-store': true, 'managed-groups': true, 'static-credentials': false, }, diff --git a/ui/desktop/config/environment.js b/ui/desktop/config/environment.js index 75035ba92..cb2841660 100644 --- a/ui/desktop/config/environment.js +++ b/ui/desktop/config/environment.js @@ -58,7 +58,6 @@ module.exports = function (environment) { oidc: true, search: false, filter: true, - 'credential-store': false, 'ssh-target': false, }, };