Change the way preferredUsername is synced
This commit is contained in:
parent
1a14959594
commit
a73e5a085e
|
@ -24,7 +24,7 @@
|
||||||
required
|
required
|
||||||
v-model="identity.name"
|
v-model="identity.name"
|
||||||
id="identityName"
|
id="identityName"
|
||||||
@input="autoUpdateUsername"
|
@input="(event) => updateUsername(event.target.value)"
|
||||||
/>
|
/>
|
||||||
</o-field>
|
</o-field>
|
||||||
|
|
||||||
|
@ -176,8 +176,8 @@ onBeforeMount(() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const autoUpdateUsername = () => {
|
const updateUsername = (value: string) => {
|
||||||
identity.value.preferredUsername = convertToUsername(identity.value.name);
|
identity.value.preferredUsername = convertToUsername(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const { onDone, onError, mutate } = registerAccount();
|
const { onDone, onError, mutate } = registerAccount();
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
aria-required="true"
|
aria-required="true"
|
||||||
required
|
required
|
||||||
v-model="identity.name"
|
v-model="identity.name"
|
||||||
@input="autoUpdateUsername()"
|
@input="(event) => updateUsername(event.target.value)"
|
||||||
id="identity-display-name"
|
id="identity-display-name"
|
||||||
dir="auto"
|
dir="auto"
|
||||||
/>
|
/>
|
||||||
|
@ -759,7 +759,7 @@ const breadcrumbsLinks = computed(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const autoUpdateUsername = () => {
|
const updateUsername = (value: string) => {
|
||||||
identity.value.preferredUsername = convertToUsername(identity.value.name);
|
identity.value.preferredUsername = convertToUsername(value);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue