fix: remove slugEmail

This commit is contained in:
Julien Calixte
2019-08-26 23:45:08 +02:00
parent d7e6d3044e
commit e9b3504c40
2 changed files with 1 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
<div class="account-user-new"> <div class="account-user-new">
<h3 v-if="showTitle" class="subtitle is-3">{{ $tc('account.friends', localeUsers.length, { count: localeUsers.length }) }}</h3> <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" /> <user-new v-if="user && defaultUser" v-model="user" />
{{ localeUsers }}
<div v-for="(user, k) in localeUsers" :key="k"> <div v-for="(user, k) in localeUsers" :key="k">
<user-new v-model="localeUsers[k]" @remove="() => remove(k)" /> <user-new v-model="localeUsers[k]" @remove="() => remove(k)" />
</div> </div>

View File

@@ -68,13 +68,6 @@ export default class UserNew extends Vue {
} }
return !!this.user && this.user.userId === this.newUser.userId 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> </script>