Skip to content

Commit 0049ea8

Browse files
authored
Added condition check for the Expired access key error and fetching from translations (#105)
* Added condition check for the Expired acess key error and fetching from translations * Addressed the review comments
1 parent 31967f3 commit 0049ea8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@
742742
"rebootStartedMessage": "Successfully started reboot from backup image. Reboot might take several minutes to complete.",
743743
"taskComplete": "Task complete",
744744
"taskCompleteMessage": "Task complete. Waiting for BMC reboot",
745+
"expiredAccessKeyError": "Expired Access Key. Go to `https://www.ibm.com/servers/eserver/ess`",
745746
"updateFirmware": {
746747
"step1": "Step 1 of 4 - Upload",
747748
"step1Message": "Update started. Firmware upload in progress.",

src/views/Operations/Firmware/FirmwareFormUpdate.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ export default {
264264
})
265265
.catch(({ message }) => {
266266
this.endLoader();
267-
this.errorToast(message);
267+
const errorMessage =
268+
message === 'ExpiredAccessKey'
269+
? this.$t('pageFirmware.toast.expiredAccessKeyError')
270+
: message;
271+
this.errorToast(errorMessage);
268272
});
269273
}, 180000); // 3 minutes
270274
};

0 commit comments

Comments
 (0)