diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2020-12-21 13:42:05 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2021-01-07 01:03:06 +0300 |
commit | 570a74f61f31a5a94b3200271c1af3a7e35df99c (patch) | |
tree | 618987806bcd7960806878a838e5e7522f8b3ba4 /src/views/ProfileSettings/ProfileSettings.vue | |
parent | 6b426787b5f54c488dbc6fc695b491b8e312a49c (diff) | |
download | webui-vue-570a74f61f31a5a94b3200271c1af3a7e35df99c.tar.xz |
Fix issue related to profile settings page
- On change of state of the timezone display preferences.
- Toast notification will be displayed to the user.
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: Ie846638077f75cb21123ec347d3e9f38724a51e8
Diffstat (limited to 'src/views/ProfileSettings/ProfileSettings.vue')
-rw-r--r-- | src/views/ProfileSettings/ProfileSettings.vue | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/views/ProfileSettings/ProfileSettings.vue b/src/views/ProfileSettings/ProfileSettings.vue index 65c722ab..3b0bdc2c 100644 --- a/src/views/ProfileSettings/ProfileSettings.vue +++ b/src/views/ProfileSettings/ProfileSettings.vue @@ -98,7 +98,6 @@ v-model="form.isUtcDisplay" :value="true" data-test-id="profileSettings-radio-defaultUTC" - @change="$v.form.isUtcDisplay.$touch()" > {{ $t('pageProfileSettings.defaultUTC') }} </b-form-radio> @@ -106,7 +105,6 @@ v-model="form.isUtcDisplay" :value="false" data-test-id="profileSettings-radio-browserOffset" - @change="$v.form.isUtcDisplay.$touch()" > {{ $t('pageProfileSettings.browserOffset', { @@ -133,12 +131,7 @@ import i18n from '@/i18n'; import BVToastMixin from '@/components/Mixins/BVToastMixin'; import InputPasswordToggle from '@/components/Global/InputPasswordToggle'; -import { - maxLength, - minLength, - required, - sameAs, -} from 'vuelidate/lib/validators'; +import { maxLength, minLength, sameAs } from 'vuelidate/lib/validators'; import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin'; import LocalTimezoneLabelMixin from '@/components/Mixins/LocalTimezoneLabelMixin'; import PageTitle from '@/components/Global/PageTitle'; @@ -183,7 +176,6 @@ export default { validations() { return { form: { - isUtcDisplay: { required }, newPassword: { minLength: minLength(this.passwordRequirements.minLength), maxLength: maxLength(this.passwordRequirements.maxLength), @@ -224,9 +216,7 @@ export default { if (this.form.confirmPassword || this.form.newPassword) { this.saveNewPasswordInputData(); } - if (this.$v.form.isUtcDisplay.$anyDirty) { - this.saveTimeZonePrefrenceData(); - } + this.saveTimeZonePrefrenceData(); }, }, }; |