Fix invalid password validation
Bug: Success toast message appeared on invalid value of new password
on profile settings page.
Solution: Fixed the toast message for password change and timezone
change respectively.
Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
Change-Id: I71b53dd02e4fdda040248c3ed9408be8d220454d
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index a66c375..40d6553 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -631,7 +631,7 @@
"timezoneDisplayDesc": "Select how time is displayed throughout the application",
"username": "Username",
"toast": {
- "successSaveSettings": "Successfully saved account settings."
+ "successUpdatingTimeZone": "Timezone updated successfully."
}
},
"pageNetwork": {
diff --git a/src/views/ProfileSettings/ProfileSettings.vue b/src/views/ProfileSettings/ProfileSettings.vue
index 35fc800..8f01c59 100644
--- a/src/views/ProfileSettings/ProfileSettings.vue
+++ b/src/views/ProfileSettings/ProfileSettings.vue
@@ -208,7 +208,7 @@
localStorage.setItem('storedUtcDisplay', this.form.isUtcDisplay);
this.$store.commit('global/setUtcTime', this.form.isUtcDisplay);
this.successToast(
- this.$t('pageProfileSettings.toast.successSaveSettings')
+ this.$t('pageProfileSettings.toast.successUpdatingTimeZone')
);
},
submitForm() {