keanu-weblite/src/components/RoomInfoBottomSheet.vue

73 lines
1.6 KiB
Vue
Raw Normal View History

2021-03-11 13:55:10 +01:00
<template>
<BottomSheet
class="room-info-bottom-sheet"
ref="sheet"
2021-03-11 13:55:10 +01:00
>
<div class="room-info-sheet" ref="roomInfoSheetContent">
<div class="text-center current-room">
<v-avatar class="room-avatar">
<v-img v-if="roomAvatar" :src="roomAvatar" />
<span v-else class="white--text headline">{{
roomName.substring(0, 1).toUpperCase()
}}</span>
</v-avatar>
<div class="h4">This group</div>
<div class="h2">{{ roomName }}</div>
<v-btn
height="20px"
color="black"
class="filled-button"
@click.stop="showDetails"
>View details</v-btn
>
</div>
<room-list :title="'Other groups'" v-on:close="close" />
2021-03-23 16:20:01 +01:00
<v-btn
height="20px"
color="black"
class="outlined-button"
@click.stop="createRoom"
>Create group</v-btn
>
2021-03-11 13:55:10 +01:00
</div>
</BottomSheet>
2021-03-11 13:55:10 +01:00
</template>
<script>
import BottomSheet from "./BottomSheet";
2021-03-11 13:55:10 +01:00
import RoomList from "./RoomList.vue";
import roomInfoMixin from "./roomInfoMixin";
export default {
name: "RoomInfoBottomSheet",
mixins: [roomInfoMixin],
components: {
BottomSheet,
2021-03-11 13:55:10 +01:00
RoomList,
},
methods: {
open() {
this.$refs.sheet.open();
2021-03-11 13:55:10 +01:00
},
close() {
this.$refs.sheet.close();
2021-03-11 13:55:10 +01:00
},
showDetails() {
this.close();
this.$navigation.push({ name: "RoomInfo" });
2021-03-23 16:20:01 +01:00
},
createRoom() {
this.close();
this.$navigation.push({ name: "CreateRoom" });
2021-03-11 13:55:10 +01:00
}
2021-03-23 16:20:01 +01:00
2021-03-11 13:55:10 +01:00
},
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
</style>