keanu-weblite/src/components/RoomInfoBottomSheet.vue

65 lines
1.4 KiB
Vue
Raw Normal View History

2021-03-11 13:55:10 +01:00
<template>
<BottomSheet
class="room-info-bottom-sheet"
2022-06-19 10:42:17 +03:00
:halfY="0.12"
ref="sheet"
2021-03-11 13:55:10 +01:00
>
<div class="room-info-sheet" ref="roomInfoSheetContent">
<div class="text-center current-room">
<room-avatar-picker />
<div class="h4">{{$t('room_info_sheet.this_room')}}</div>
2021-03-11 13:55:10 +01:00
<div class="h2">{{ roomName }}</div>
<v-btn
id="btn-room-details"
2021-03-11 13:55:10 +01:00
height="20px"
color="black"
class="filled-button"
@click.stop="showDetails"
>{{$t('room_info_sheet.view_details')}}</v-btn
2021-03-11 13:55:10 +01:00
>
</div>
2021-07-19 09:53:34 +02:00
<room-list :title="'Other rooms'" v-on:close="close" v-on:newroom="createRoom" :showCreate="true" />
2021-03-11 13:55:10 +01:00
</div>
</BottomSheet>
2021-03-11 13:55:10 +01:00
</template>
<script>
import BottomSheet from "./BottomSheet";
import RoomAvatarPicker from "./RoomAvatarPicker";
import RoomList from "./RoomList";
2021-03-11 13:55:10 +01:00
import roomInfoMixin from "./roomInfoMixin";
export default {
name: "RoomInfoBottomSheet",
mixins: [roomInfoMixin],
components: {
BottomSheet,
2021-03-11 13:55:10 +01:00
RoomList,
RoomAvatarPicker,
2021-03-11 13:55:10 +01:00
},
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
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
2021-07-03 11:57:01 +05:30
</style>