parent
6ca7a2040d
commit
e9a1633083
2 changed files with 14 additions and 8 deletions
|
|
@ -21,14 +21,7 @@
|
|||
>{{$t('room_info_sheet.view_details')}}</v-btn
|
||||
>
|
||||
</div>
|
||||
<room-list :title="'Other groups'" v-on:close="close" />
|
||||
<v-btn
|
||||
height="20px"
|
||||
color="black"
|
||||
class="outlined-button"
|
||||
@click.stop="createRoom"
|
||||
>{{$t('room_info_sheet.create_room')}}</v-btn
|
||||
>
|
||||
<room-list :title="'Other groups'" v-on:close="close" v-on:newroom="createRoom" :showCreate="true" />
|
||||
</div>
|
||||
</BottomSheet>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,15 @@
|
|||
</v-list-item-group>
|
||||
<div class="h4">{{title}}</div>
|
||||
<v-list-item-group v-model="currentRoomId" color="primary">
|
||||
<v-list-item v-if="showCreate" @click.stop="$emit('newroom')">
|
||||
<v-list-item-avatar size="40" color="#e0e0e0">
|
||||
<v-img />
|
||||
</v-list-item-avatar>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>{{$t('menu.new_room')}}</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item v-for="room in $matrix.joinedRooms" :key="room.roomId" :value="room.roomId">
|
||||
<v-list-item-avatar size="40" color="#e0e0e0">
|
||||
<v-img :src="room.avatar" />
|
||||
|
|
@ -53,6 +62,10 @@ export default {
|
|||
showInvites: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
showCreate: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue