diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2021-02-19 02:24:14 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-03-01 16:45:05 +0300 |
commit | 33d755f4e62beff72101f6ca07e4d31b04e13826 (patch) | |
tree | a67d890472f0c7f27951b8e86d472e220dac066e /src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue | |
parent | 9a25c80591e8872297f2c33ad9bcd6a97639f04c (diff) | |
download | webui-vue-33d755f4e62beff72101f6ca07e4d31b04e13826.tar.xz |
Update the default firmware page
- Minor updates made to the general layout and styles
- Changes to some page copy
- Moves update firmware form to bottom of page
- Adds dynamic TFTP upload option
- Adds dynamic card layout for BMC and host firmwre
- 2 cards for combined
- 4 cards for separate
- Removes FirmwareSingleImage components that were used for IBM builds
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ib5465ecc30dd1505824bf41c82d33b7655d5e598
Diffstat (limited to 'src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue')
-rw-r--r-- | src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue b/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue deleted file mode 100644 index 2e601bd4..00000000 --- a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue +++ /dev/null @@ -1,97 +0,0 @@ -<template> - <b-container fluid="xl"> - <page-title /> - <alerts-server-power - v-if="isServerPowerOffRequired" - :is-host-off="isHostOff" - /> - - <!-- 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.singleFileUpload.sectionTitleUpdateFirmware') - " - > - <b-row> - <b-col sm="8" md="6" xl="4"> - <!-- Update form --> - <form-update - :is-host-off="isHostOff" - :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: { - hostStatus() { - return this.$store.getters['global/hostStatus']; - }, - isHostOff() { - return this.hostStatus === 'off' ? true : false; - }, - isSingleFileUploadEnabled() { - return this.$store.getters[ - 'firmwareSingleImage/isSingleFileUploadEnabled' - ]; - }, - isPageDisabled() { - if (this.isServerPowerOffRequired) { - return !this.isHostOff || this.loading || this.isOperationInProgress; - } - return this.loading || this.isOperationInProgress; - }, - }, - created() { - this.startLoader(); - this.$store - .dispatch('firmwareSingleImage/getFirmwareInformation') - .finally(() => this.endLoader()); - }, -}; -</script> |