Remove Virtual Media from IBM build
Removes Virtual Media from app navigation, router definition,
and unregisters the store module.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I0e3ab2a6cb28b9923efbeb6b2c212b0a09d263a9
diff --git a/src/env/components/AppNavigation/ibm.js b/src/env/components/AppNavigation/ibm.js
index 014edd6..1f25230 100644
--- a/src/env/components/AppNavigation/ibm.js
+++ b/src/env/components/AppNavigation/ibm.js
@@ -74,11 +74,6 @@
id: 'server-power-operations',
label: this.$t('appNavigation.serverPowerOperations'),
route: '/control/server-power-operations'
- },
- {
- id: 'virtual-media',
- label: this.$t('appNavigation.virtualMedia'),
- route: '/control/virtual-media'
}
]
},
diff --git a/src/env/router/ibm.js b/src/env/router/ibm.js
index bfba0f0..5b69475 100644
--- a/src/env/router/ibm.js
+++ b/src/env/router/ibm.js
@@ -20,7 +20,6 @@
import ServerLed from '@/views/Control/ServerLed';
import ServerPowerOperations from '@/views/Control/ServerPowerOperations';
import SslCertificates from '@/views/AccessControl/SslCertificates';
-import VirtualMedia from '@/views/Control/VirtualMedia';
import i18n from '@/i18n';
// Custom components
@@ -203,14 +202,6 @@
}
},
{
- path: '/control/virtual-media',
- name: 'virtual-media',
- component: VirtualMedia,
- meta: {
- title: i18n.t('appPageTitle.virtualMedia')
- }
- },
- {
path: '*',
name: 'page-not-found',
component: PageNotFound,
diff --git a/src/env/store/ibm.js b/src/env/store/ibm.js
index 12fd086..383d97c 100644
--- a/src/env/store/ibm.js
+++ b/src/env/store/ibm.js
@@ -1,6 +1,8 @@
import store from '@/store';
import FirmwareSingleImageStore from './FirmwareSingleImage/FirmwareSingleImageStore';
+store.unregisterModule('virtualMedia');
+
store.unregisterModule('firmware');
store.registerModule('firmwareSingleImage', FirmwareSingleImageStore);