Merge branch '1226-fix-name-sync-in-profile-setup-form' into 'main'
Change the way preferredUsername is synced Closes #1226 See merge request framasoft/mobilizon!1369
This commit is contained in:
commit
09874bb049
@ -24,7 +24,7 @@
|
||||
required
|
||||
v-model="identity.name"
|
||||
id="identityName"
|
||||
@input="autoUpdateUsername"
|
||||
@input="(event) => updateUsername(event.target.value)"
|
||||
/>
|
||||
</o-field>
|
||||
|
||||
@ -176,8 +176,8 @@ onBeforeMount(() => {
|
||||
}
|
||||
});
|
||||
|
||||
const autoUpdateUsername = () => {
|
||||
identity.value.preferredUsername = convertToUsername(identity.value.name);
|
||||
const updateUsername = (value: string) => {
|
||||
identity.value.preferredUsername = convertToUsername(value);
|
||||
};
|
||||
|
||||
const { onDone, onError, mutate } = registerAccount();
|
||||
|
@ -23,7 +23,7 @@
|
||||
aria-required="true"
|
||||
required
|
||||
v-model="identity.name"
|
||||
@input="autoUpdateUsername()"
|
||||
@input="(event) => updateUsername(event.target.value)"
|
||||
id="identity-display-name"
|
||||
dir="auto"
|
||||
/>
|
||||
@ -759,7 +759,7 @@ const breadcrumbsLinks = computed(
|
||||
}
|
||||
);
|
||||
|
||||
const autoUpdateUsername = () => {
|
||||
identity.value.preferredUsername = convertToUsername(identity.value.name);
|
||||
const updateUsername = (value: string) => {
|
||||
identity.value.preferredUsername = convertToUsername(value);
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user