Move build version to room info

This commit is contained in:
N-Pex 2021-01-29 21:53:22 +01:00
parent bdd6977728
commit 06dcf861b8
3 changed files with 20 additions and 5 deletions

View file

@ -40,7 +40,7 @@
<v-btn icon x-small @click.stop="openDrawer = !openDrawer"> <v-btn icon x-small @click.stop="openDrawer = !openDrawer">
<v-icon>menu</v-icon> <v-icon>menu</v-icon>
</v-btn> </v-btn>
Powered by Guardian Project. Version: {{ buildVersion }}</v-footer </v-footer
> >
</v-app> </v-app>
</template> </template>
@ -54,14 +54,10 @@ export default {
RoomList, RoomList,
}, },
data: () => ({ data: () => ({
buildVersion: "",
openDrawer: false, openDrawer: false,
}), }),
mounted() { mounted() {
//this.$router.replace("/"); //this.$router.replace("/");
const version = require("!!raw-loader!./assets/version.txt").default;
console.log("Version", version);
this.buildVersion = version;
}, },
methods: { methods: {
loggedIn() { loggedIn() {

View file

@ -60,4 +60,15 @@ $chat-button-height: 50px;
.dialog-text { .dialog-text {
word-break: break-word; word-break: break-word;
}
.build-version {
font-family: 'Inter', sans-serif;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 117%;
text-align: center;
letter-spacing: 0.4px;
color: rgba(0, 0, 0, 0.6);
} }

View file

@ -106,6 +106,8 @@
</v-card-text> </v-card-text>
</v-card> </v-card>
<div class="build-version">Powered by Guardian Project. Version: {{ buildVersion }}</div>
<LeaveRoomDialog <LeaveRoomDialog
:show="showLeaveConfirmation" :show="showLeaveConfirmation"
:room="room" :room="room"
@ -130,6 +132,7 @@ export default {
displayName: "", displayName: "",
showAllMembers: false, showAllMembers: false,
showLeaveConfirmation: false, showLeaveConfirmation: false,
buildVersion: "",
}; };
}, },
mounted() { mounted() {
@ -140,6 +143,11 @@ export default {
// Set QR code // Set QR code
this.updateQRCode(); this.updateQRCode();
// Display build version
const version = require("!!raw-loader!../assets/version.txt").default;
console.log("Version", version);
this.buildVersion = version;
}, },
destroyed() { destroyed() {