Improve JoinGroupWithAccount component
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5bbb9713d4
commit
62f4f2bd24
@ -10,7 +10,7 @@
|
|||||||
import { Component, Prop, Vue } from "vue-property-decorator";
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
||||||
import RedirectWithAccount from "@/components/Utils/RedirectWithAccount.vue";
|
import RedirectWithAccount from "@/components/Utils/RedirectWithAccount.vue";
|
||||||
import { FETCH_GROUP } from "@/graphql/group";
|
import { FETCH_GROUP } from "@/graphql/group";
|
||||||
import { IGroup } from "@/types/actor";
|
import { displayName, IGroup } from "@/types/actor";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: { RedirectWithAccount },
|
components: { RedirectWithAccount },
|
||||||
@ -52,7 +52,7 @@ export default class JoinGroupWithAccount extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get groupTitle(): undefined | string {
|
get groupTitle(): undefined | string {
|
||||||
return this.group?.name || this.group?.preferredUsername;
|
return this.group && displayName(this.group);
|
||||||
}
|
}
|
||||||
|
|
||||||
sentence = this.$t(
|
sentence = this.$t(
|
||||||
|
Loading…
Reference in New Issue
Block a user