Add topic to rom info

Issue #59.
This commit is contained in:
N-Pex 2021-02-17 10:49:54 +01:00
parent ee3dd935be
commit bd60f9ebd4
2 changed files with 16 additions and 0 deletions

View file

@ -29,6 +29,14 @@ $chat-button-height: 50px;
color: black;
}
.h3 {
font-family: 'Poppins', sans-serif;
font-weight: 400;
font-size: 18 * $chat-text-size;
text-align: center;
color: #505050;
}
.v-btn.outlined-button {
font-family: 'Inter', sans-serif;
font-weight: 700;

View file

@ -24,6 +24,7 @@
}}</span>
</v-avatar>
<div class="h1">{{ roomName }}</div>
<div class="h3">{{ roomTopic }}</div>
<div class="small">Created by {{ creator }}</div>
<canvas class="qr" id="room-qr"></canvas>
</div>
@ -191,6 +192,13 @@ export default {
return "";
},
roomTopic() {
if (this.room) {
return this.room.topic;
}
return "";
},
anyoneCanJoin() {
// TODO: fix this! For now, just return true of we have a canonical alias.
if (this.room && this.room.getCanonicalAlias() && this.room.getCanonicalAlias().startsWith('#')) {