Skip to content

Commit 12e868b

Browse files
feat: enforce team name if none
1 parent 3b0f554 commit 12e868b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/components/sidebar/SidebarHeader.vue

+8-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ div(
2828
base-server-logo(
2929
@click="onIdentityLogoClick"
3030
:jid="teamDomainJID"
31-
:name="teamName"
31+
:name="teamNameOrDomain"
3232
size="30px"
3333
class="c-sidebar-header__identity-logo"
3434
)
@@ -135,12 +135,16 @@ export default {
135135
};
136136
},
137137

138+
teamDomain(): string {
139+
return this.jid.domain;
140+
},
141+
138142
teamDomainJID(): JID {
139-
return new JID(this.jid.domain);
143+
return new JID(this.teamDomain);
140144
},
141145

142-
teamName(): string {
143-
return Store.$account.getWorkspaceName();
146+
teamNameOrDomain(): string {
147+
return Store.$account.getWorkspaceName() || this.teamDomain;
144148
}
145149
},
146150

0 commit comments

Comments
 (0)