summaryrefslogtreecommitdiff
path: root/src/views/Configuration/Firmware/Firmware.vue
diff options
context:
space:
mode:
authorSandeepa Singh <sandeepa.singh@ibm.com>2021-07-14 13:32:22 +0300
committerDerick Montague <derick.montague@ibm.com>2021-08-10 22:20:42 +0300
commit68cbbe9014cbdcf7229a878f564d38f6d6199f25 (patch)
treecd7138959f405cb44b5d62000da9d364ed238b91 /src/views/Configuration/Firmware/Firmware.vue
parent7affc529b7fba41193c4d48764707e9961cdd22d (diff)
downloadwebui-vue-68cbbe9014cbdcf7229a878f564d38f6d6199f25.tar.xz
IA update: Update control section to operations
This is the third update to the information architecture changes and has the following changes: - The control section has been updated to operations - The server led page has been removed - The firmware page is moved to operations section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4
Diffstat (limited to 'src/views/Configuration/Firmware/Firmware.vue')
-rw-r--r--src/views/Configuration/Firmware/Firmware.vue93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/views/Configuration/Firmware/Firmware.vue b/src/views/Configuration/Firmware/Firmware.vue
deleted file mode 100644
index a2acb9b0..00000000
--- a/src/views/Configuration/Firmware/Firmware.vue
+++ /dev/null
@@ -1,93 +0,0 @@
-<template>
- <b-container fluid="xl">
- <page-title />
- <alerts-server-power
- v-if="isServerPowerOffRequired"
- :is-server-off="isServerOff"
- />
-
- <!-- Firmware cards -->
- <b-row>
- <b-col xl="10">
- <!-- BMC Firmware -->
- <bmc-cards :is-page-disabled="isPageDisabled" />
-
- <!-- Host Firmware -->
- <host-cards v-if="!isSingleFileUploadEnabled" />
- </b-col>
- </b-row>
-
- <!-- Update firmware-->
- <page-section
- :section-title="$t('pageFirmware.sectionTitleUpdateFirmware')"
- >
- <b-row>
- <b-col sm="8" md="6" xl="4">
- <!-- Update form -->
- <form-update
- :is-server-off="isServerOff"
- :is-page-disabled="isPageDisabled"
- />
- </b-col>
- </b-row>
- </page-section>
- </b-container>
-</template>
-
-<script>
-import AlertsServerPower from './FirmwareAlertServerPower';
-import BmcCards from './FirmwareCardsBmc';
-import FormUpdate from './FirmwareFormUpdate';
-import HostCards from './FirmwareCardsHost';
-import PageSection from '@/components/Global/PageSection';
-import PageTitle from '@/components/Global/PageTitle';
-
-import LoadingBarMixin, { loading } from '@/components/Mixins/LoadingBarMixin';
-
-export default {
- name: 'FirmwareSingleImage',
- components: {
- AlertsServerPower,
- BmcCards,
- FormUpdate,
- HostCards,
- PageSection,
- PageTitle,
- },
- mixins: [LoadingBarMixin],
- beforeRouteLeave(to, from, next) {
- this.hideLoader();
- next();
- },
- data() {
- return {
- loading,
- isServerPowerOffRequired:
- process.env.VUE_APP_SERVER_OFF_REQUIRED === 'true',
- };
- },
- computed: {
- serverStatus() {
- return this.$store.getters['global/serverStatus'];
- },
- isServerOff() {
- return this.serverStatus === 'off' ? true : false;
- },
- isSingleFileUploadEnabled() {
- return this.$store.getters['firmware/isSingleFileUploadEnabled'];
- },
- isPageDisabled() {
- if (this.isServerPowerOffRequired) {
- return !this.isServerOff || this.loading || this.isOperationInProgress;
- }
- return this.loading || this.isOperationInProgress;
- },
- },
- created() {
- this.startLoader();
- this.$store
- .dispatch('firmware/getFirmwareInformation')
- .finally(() => this.endLoader());
- },
-};
-</script>