Fix order of useHead registration on JoinGroupWithAccount view

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-07 11:29:15 +01:00
parent 066e71c517
commit 6e1687a651
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -26,6 +26,14 @@ const { group } = useGroup(props.preferredUsername);
const { t } = useI18n({ useScope: "global" }); const { t } = useI18n({ useScope: "global" });
const groupTitle = computed((): undefined | string => {
return group && displayName(group.value);
});
const uri = computed((): string | undefined => {
return group.value?.url;
});
useHead({ useHead({
title: computed(() => title: computed(() =>
t("Join group {group}", { t("Join group {group}", {
@ -33,12 +41,4 @@ useHead({
}) })
), ),
}); });
const uri = computed((): string | undefined => {
return group.value?.url;
});
const groupTitle = computed((): undefined | string => {
return group && displayName(group.value);
});
</script> </script>