summaryrefslogtreecommitdiff
path: root/src/views/ProfileSettings
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2021-02-10 01:40:48 +0300
committerDerick Montague <derick.montague@ibm.com>2021-02-11 22:31:55 +0300
commit0736d2afc54c944a1cb5efc3986996615914a059 (patch)
tree8a3053de697832567c1675d35d976cb065ef28e0 /src/views/ProfileSettings
parentdf88f13a88fa05cfea190ff20220226a38e371ec (diff)
downloadwebui-vue-0736d2afc54c944a1cb5efc3986996615914a059.tar.xz
Remove i18n module import from Profile settings
Update translation to use the global $t component method provided by the i18n plugin. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I0f1de15b19820e3235187fb4c4c51befa67005e4
Diffstat (limited to 'src/views/ProfileSettings')
-rw-r--r--src/views/ProfileSettings/ProfileSettings.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/ProfileSettings/ProfileSettings.vue b/src/views/ProfileSettings/ProfileSettings.vue
index 3b0bdc2c..820d386c 100644
--- a/src/views/ProfileSettings/ProfileSettings.vue
+++ b/src/views/ProfileSettings/ProfileSettings.vue
@@ -128,7 +128,6 @@
</template>
<script>
-import i18n from '@/i18n';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import InputPasswordToggle from '@/components/Global/InputPasswordToggle';
import { maxLength, minLength, sameAs } from 'vuelidate/lib/validators';
@@ -209,7 +208,7 @@ export default {
localStorage.setItem('storedUtcDisplay', this.form.isUtcDisplay);
this.$store.commit('global/setUtcTime', this.form.isUtcDisplay);
this.successToast(
- i18n.t('pageProfileSettings.toast.successSaveSettings')
+ this.$t('pageProfileSettings.toast.successSaveSettings')
);
},
submitForm() {