Skip to content

Commit

Permalink
Update Firmware page interactions when system is powered on
Browse files Browse the repository at this point in the history
- if isServerPowerOffRequired is true & !isServerOff is true
a warning will be shown that the server must be powered off
to switch images and update the firmware.

- When system power is on,
the switch to "running button" is disabled.

Signed-off-by: Kenneth Fullbright <[email protected]>
Change-Id: I65a24984c36f6ae39d715f4fa66e9884d031cb20
  • Loading branch information
Kenneth Fullbright authored and sivaprabug committed Oct 3, 2023
1 parent 2098359 commit c3cf361
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/views/Operations/Firmware/Firmware.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<b-row>
<b-col xl="10">
<!-- BMC Firmware -->
<bmc-cards :is-page-disabled="isPageDisabled" />
<bmc-cards
:is-page-disabled="isPageDisabled"
:is-server-off="isServerOff"
/>

<!-- Host Firmware -->
<host-cards v-if="!isSingleFileUploadEnabled" />
Expand Down
1 change: 1 addition & 0 deletions src/views/Operations/Firmware/FirmwareAlertServerPower.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
isServerOff: {
required: true,
type: Boolean,
default: true,
},
},
computed: {
Expand Down
7 changes: 6 additions & 1 deletion src/views/Operations/Firmware/FirmwareCardsBmc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
variant="link"
size="sm"
class="py-0 px-1 mt-2"
:disabled="isPageDisabled || !backup"
:disabled="isPageDisabled || !backup || !isServerOff"
>
<icon-switch class="d-none d-sm-inline-block" />
{{ $t('pageFirmware.cardActionSwitchToRunning') }}
Expand Down Expand Up @@ -68,6 +68,11 @@ export default {
type: Boolean,
default: false,
},
isServerOff: {
required: true,
type: Boolean,
default: false,
},
},
data() {
return {
Expand Down

0 comments on commit c3cf361

Please sign in to comment.