Skip to content

Commit

Permalink
Disabled the selection till save is success for bios setting (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Renuka9527 authored Mar 6, 2024
1 parent a8a1eed commit d495996
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/store/modules/Operations/BootSettingsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ const BootSettingsStore = {
Attributes: biosSettings,
})
.then((response) => {
dispatch('saveOperatingModeSettings');
dispatch('saveOperatingModeSettings', biosSettings);
commit('setDisabled', false);
return response;
})
.catch((error) => {
Expand All @@ -179,7 +180,7 @@ const BootSettingsStore = {
);
});
},
saveOperatingModeSettings({ dispatch, commit }) {
saveOperatingModeSettings({ commit }, biosSettings) {
return api
.patch('/redfish/v1/Systems/system', {
PowerRestorePolicy: this.state.serverBootSettings
Expand All @@ -191,7 +192,7 @@ const BootSettingsStore = {
},
})
.then((response) => {
dispatch('getBiosAttributes');
commit('setBiosAttributes', biosSettings);
return response;
})
.catch((error) => {
Expand Down
5 changes: 5 additions & 0 deletions src/views/Operations/ServerPowerOperations/BiosSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
id="bios-option-sysOp-mode"
v-model="attributeKeys[key]"
:options="attriValuesArr"
:disabled="disabled"
>
</b-form-select>
</b-form-group>
Expand Down Expand Up @@ -58,6 +59,7 @@
v-model="attributeKeys[key]"
:value="values.value"
:aria-describedby="values.value"
:disabled="disabled"
@change="onChangeSystemOpsMode"
>
{{ values.text }}
Expand Down Expand Up @@ -210,6 +212,7 @@
:id="values.value"
:key="keys"
class="ml-4"
:disabled="disabled"
>
{{
$t(
Expand All @@ -222,6 +225,7 @@
:id="values.value"
:key="keys"
class="ml-4"
:disabled="disabled"
>
{{
$t(
Expand All @@ -234,6 +238,7 @@
:id="values.value"
:key="keys"
class="ml-4"
:disabled="disabled"
>
{{
$t(
Expand Down

0 comments on commit d495996

Please sign in to comment.