2020-11-09 10:26:56 +01:00
|
|
|
<template>
|
|
|
|
|
<v-list flat>
|
|
|
|
|
<v-subheader>ROOMS</v-subheader>
|
2020-11-09 15:08:36 +01:00
|
|
|
<v-list-item-group v-model="currentRoomId" color="primary">
|
|
|
|
|
<v-list-item v-for="room in $matrix.rooms" :key="room.roomId" :value="room.roomId">
|
2020-11-09 10:26:56 +01:00
|
|
|
<v-list-item-icon>
|
|
|
|
|
<v-icon v-text="room.icon"></v-icon>
|
|
|
|
|
</v-list-item-icon>
|
|
|
|
|
<v-list-item-content>
|
|
|
|
|
<v-list-item-title
|
|
|
|
|
v-text="room.summary.info.title"
|
|
|
|
|
></v-list-item-title>
|
|
|
|
|
<v-list-item-content
|
2020-11-09 15:08:36 +01:00
|
|
|
>Topic: {{ room.topic }}</v-list-item-content
|
2020-11-09 10:26:56 +01:00
|
|
|
>
|
|
|
|
|
</v-list-item-content>
|
|
|
|
|
</v-list-item>
|
|
|
|
|
</v-list-item-group>
|
|
|
|
|
</v-list>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "RoomList",
|
|
|
|
|
|
|
|
|
|
data: () => ({
|
2020-11-09 15:08:36 +01:00
|
|
|
currentRoomId: -1,
|
2020-11-09 10:26:56 +01:00
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
watch: {
|
2020-11-09 15:08:36 +01:00
|
|
|
currentRoomId() {
|
|
|
|
|
this.$matrix.setCurrentRoomId(this.currentRoomId);
|
2020-11-09 10:26:56 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|