From 739be5d002ec9f5e0cb01e90e1be04e82f4da016 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Tue, 28 Jun 2022 12:20:48 +0700 Subject: [PATCH] UI: Change notification title when resizing volume (#6502) * fixes resize volume message * Update ui/public/locales/en.json Co-authored-by: Suresh Kumar Anaparti * Update ui/src/views/storage/ResizeVolume.vue Co-authored-by: Suresh Kumar Anaparti Co-authored-by: Suresh Kumar Anaparti --- ui/public/locales/en.json | 1 + ui/src/views/storage/ResizeVolume.vue | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index b96b9bc1c19..9bb0df89bb2 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -3348,6 +3348,7 @@ "message.reset.vpn.connection": "Please confirm that you want to reset VPN connection.", "message.linstor.resourcegroup.description": "Linstor resource group to use for primary storage.", "message.resize.volume.failed": "Failed to resize volume.", +"message.resize.volume.processing": "Volume resize is in progress", "message.resource.not.found": "Resource not found.", "message.restart.mgmt.server": "Please restart your management server(s) for your new settings to take effect.", "message.restart.mgmt.usage.server": "Please restart your management server(s) and usage server(s) for your new settings to take effect.", diff --git a/ui/src/views/storage/ResizeVolume.vue b/ui/src/views/storage/ResizeVolume.vue index 4d10fd819cf..38a7ea5cb23 100644 --- a/ui/src/views/storage/ResizeVolume.vue +++ b/ui/src/views/storage/ResizeVolume.vue @@ -72,7 +72,8 @@ export default { return { offerings: [], customDiskOffering: false, - loading: false + loading: false, + customDiskOfferingIops: false } }, created () { @@ -98,6 +99,7 @@ export default { this.offerings = json.listdiskofferingsresponse.diskoffering || [] this.form.diskofferingid = this.offerings[0].id || '' this.customDiskOffering = this.offerings[0].iscustomized || false + this.customDiskOfferingIops = this.offerings[0].iscustomizediops || false }).finally(() => { this.loading = false }) @@ -112,7 +114,7 @@ export default { api('resizeVolume', values).then(response => { this.$pollJob({ jobId: response.resizevolumeresponse.jobid, - title: this.$t('message.success.resize.volume'), + title: this.$t('label.action.resize.volume'), description: values.name, successMessage: this.$t('message.success.resize.volume'), successMethod: () => {}, @@ -120,7 +122,7 @@ export default { errorMethod: () => { this.closeModal() }, - loadingMessage: `Volume resize is in progress`, + loadingMessage: this.$t('message.resize.volume.processing'), catchMessage: this.$t('error.fetching.async.job.result'), catchMethod: () => { this.loading = false