feat: add alias as user id to main user
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
:placeholder="newUser.userId"
|
:placeholder="newUser.userId"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<p class="help is-primary">Nom utilisé dans ce compte</p>
|
<p class="help is-primary">Nom utilisé sur ce compte</p>
|
||||||
<p
|
<p
|
||||||
class="help is-primary"
|
class="help is-primary"
|
||||||
>{{ $tc('validation.max_char', maxChar(newUser), { max: maxChar(newUser) }) }}</p>
|
>{{ $tc('validation.max_char', maxChar(newUser), { max: maxChar(newUser) }) }}</p>
|
||||||
|
|||||||
@@ -120,6 +120,12 @@ export default class AccountNew extends Vue {
|
|||||||
public currencyShow: boolean = false
|
public currencyShow: boolean = false
|
||||||
public isPublic: boolean = false
|
public isPublic: boolean = false
|
||||||
|
|
||||||
|
public mounted(): void {
|
||||||
|
if (this.user && !this.user.alias) {
|
||||||
|
this.user.alias = this.user.userId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public toggleCurrencyShow(): void {
|
public toggleCurrencyShow(): void {
|
||||||
this.currencyShow = !this.currencyShow
|
this.currencyShow = !this.currencyShow
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user