show notification on username change + fix userEmail checks

This commit is contained in:
negue
2023-06-25 20:01:31 +02:00
parent 6a6f55f6fc
commit 87a4e4931b
3 changed files with 16 additions and 5 deletions
@@ -70,12 +70,13 @@ import { mapState } from '@/libs/store';
import { InlineSettingMixin } from '../components/inlineSettingMixin';
import SaveCancelButtons from '../components/saveCancelButtons.vue';
import ValidatedTextInput from '@/components/ui/validatedTextInput.vue';
import { NotificationMixins } from '@/mixins/notifications';
// TODO extract usernameIssues/checks to a mixin to share between this and the authForm
export default {
components: { ValidatedTextInput, SaveCancelButtons },
mixins: [InlineSettingMixin],
mixins: [InlineSettingMixin, NotificationMixins],
data () {
return {
inputValue: '',
@@ -139,6 +140,8 @@ export default {
// this.localAuth.username = this.user.auth.local.username;
this.user.flags.verifiedUsername = true;
this.text(this.$t('userNameSuccess'));
this.closeModal();
},
valuesChanged () {