fix: remove slugEmail
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<div class="account-user-new">
|
||||
<h3 v-if="showTitle" class="subtitle is-3">{{ $tc('account.friends', localeUsers.length, { count: localeUsers.length }) }}</h3>
|
||||
<user-new v-if="user && defaultUser" v-model="user" />
|
||||
{{ localeUsers }}
|
||||
<div v-for="(user, k) in localeUsers" :key="k">
|
||||
<user-new v-model="localeUsers[k]" @remove="() => remove(k)" />
|
||||
</div>
|
||||
|
||||
@@ -68,13 +68,6 @@ export default class UserNew extends Vue {
|
||||
}
|
||||
return !!this.user && this.user.userId === this.newUser.userId
|
||||
}
|
||||
|
||||
@Watch('user.email', { immediate: true })
|
||||
public onEmailChange(email: string) {
|
||||
if (this.newUser) {
|
||||
this.newUser.slugEmail = slug(email || '')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user