From 570a74f61f31a5a94b3200271c1af3a7e35df99c Mon Sep 17 00:00:00 2001 From: Sukanya Pandey Date: Mon, 21 Dec 2020 16:12:05 +0530 Subject: 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 Change-Id: Ie846638077f75cb21123ec347d3e9f38724a51e8 --- src/views/ProfileSettings/ProfileSettings.vue | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/views/ProfileSettings') 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') }} @@ -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(); }, }, }; -- cgit v1.2.3