summaryrefslogtreecommitdiff
path: root/src/store/modules
diff options
context:
space:
mode:
authorJagpal Singh Gill <paligill@gmail.com>2024-06-19 01:21:08 +0300
committerJagpal Singh Gill <paligill@gmail.com>2024-06-19 01:37:16 +0300
commitccb71f0bd6b91b4344cf9a776a433528a5771217 (patch)
tree18629a2cec4ba8dc63bf37cfe56932b069ee1239 /src/store/modules
parent620e6466db409f535fc3d4a2ab85dd672e3de6dd (diff)
downloadwebui-vue-ccb71f0bd6b91b4344cf9a776a433528a5771217.tar.xz
remove setApplyTimeImmediate and its usage
BMCWeb is dropping the support for patch for ApplyOptions, hence remove the setApplyTimeImmediate and its corresponding usage from webui. The related patch from bmcweb is as under - https://gerrit.openbmc.org/c/openbmc/bmcweb/+/72150 Change-Id: I4ef64485103db843e1280bc5b8bd8be63813c368 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
Diffstat (limited to 'src/store/modules')
-rw-r--r--src/store/modules/Operations/FirmwareStore.js27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/store/modules/Operations/FirmwareStore.js b/src/store/modules/Operations/FirmwareStore.js
index 43a8e079..7dce2316 100644
--- a/src/store/modules/Operations/FirmwareStore.js
+++ b/src/store/modules/Operations/FirmwareStore.js
@@ -124,25 +124,7 @@ const FirmwareStore = {
})
.catch((error) => console.log(error));
},
- setApplyTimeImmediate({ commit }) {
- const data = {
- HttpPushUriOptions: {
- HttpPushUriApplyTime: {
- ApplyTime: 'Immediate',
- },
- },
- };
- return api
- .patch('/redfish/v1/UpdateService', data)
- .then(() => commit('setApplyTime', 'Immediate'))
- .catch((error) => console.log(error));
- },
- async uploadFirmware({ state, dispatch }, image) {
- if (state.applyTime !== 'Immediate') {
- // ApplyTime must be set to Immediate before making
- // request to update firmware
- await dispatch('setApplyTimeImmediate');
- }
+ async uploadFirmware({ state }, image) {
return await api
.post(state.httpPushUri, image, {
headers: { 'Content-Type': 'application/octet-stream' },
@@ -152,16 +134,11 @@ const FirmwareStore = {
throw new Error(i18n.t('pageFirmware.toast.errorUpdateFirmware'));
});
},
- async uploadFirmwareTFTP({ state, dispatch }, fileAddress) {
+ async uploadFirmwareTFTP(fileAddress) {
const data = {
TransferProtocol: 'TFTP',
ImageURI: fileAddress,
};
- if (state.applyTime !== 'Immediate') {
- // ApplyTime must be set to Immediate before making
- // request to update firmware
- await dispatch('setApplyTimeImmediate');
- }
return await api
.post(
'/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate',