Hide "BMC shell (via SSH)" switch button on Intel environment
Add environment variable to control visibility of "BMC shell"
switch button on "Policies" tab.
Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com>
Change-Id: I824e942cabbbb9da61343ebdbea8c93f1fe2b246
diff --git a/.env.intel b/.env.intel
index 02506f5..220ff1f 100644
--- a/.env.intel
+++ b/.env.intel
@@ -3,6 +3,7 @@
VUE_APP_COMPANY_NAME="intel"
VUE_APP_SUBSCRIBE_SOCKET_DISABLED="true"
VUE_APP_SWITCH_TO_BACKUP_IMAGE_DISABLED="true"
+VUE_APP_MODIFY_SSH_POLICY_DISABLED="true"
VUE_APP_VIRTUAL_MEDIA_LIST_ENABLED="true"
CUSTOM_STYLES="true"
CUSTOM_APP_NAV="true"
diff --git a/src/views/SecurityAndAccess/Policies/Policies.vue b/src/views/SecurityAndAccess/Policies/Policies.vue
index 41b9536..ebcb002 100644
--- a/src/views/SecurityAndAccess/Policies/Policies.vue
+++ b/src/views/SecurityAndAccess/Policies/Policies.vue
@@ -4,7 +4,7 @@
<b-row>
<b-col md="8">
<page-section :section-title="$t('pagePolicies.networkServices')">
- <b-row class="setting-section">
+ <b-row v-if="!modifySSHPolicyDisabled" class="setting-section">
<b-col class="d-flex align-items-center justify-content-between">
<dl class="mr-3 w-75">
<dt>{{ $t('pagePolicies.ssh') }}</dt>
@@ -75,6 +75,12 @@
this.hideLoader();
next();
},
+ data() {
+ return {
+ modifySSHPolicyDisabled:
+ process.env.VUE_APP_MODIFY_SSH_POLICY_DISABLED === 'true',
+ };
+ },
computed: {
sshProtocolState: {
get() {