File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 3
3
v-show =" (isMobile && !showRoomsList) || !isMobile || singleRoom"
4
4
class =" vac-col-messages"
5
5
>
6
- <slot
7
- v-if ="
8
- (!rooms.length && !loadingRooms) || (!room.roomId && !loadFirstRoom)
9
- "
10
- name =" no-room-selected"
11
- >
6
+ <slot v-if =" showNoRoom" name =" no-room-selected" >
12
7
<div class =" vac-container-center vac-room-empty" >
13
8
<div >{{ textMessages.ROOM_EMPTY }}</div >
14
9
</div >
@@ -437,6 +432,14 @@ export default {
437
432
! this .loadingRooms
438
433
)
439
434
},
435
+ showNoRoom () {
436
+ const noRoomSelected =
437
+ (! this .rooms .length && ! this .loadingRooms ) ||
438
+ (! this .room .roomId && ! this .loadFirstRoom )
439
+
440
+ if (noRoomSelected) this .loadingMessages = false
441
+ return noRoomSelected
442
+ },
440
443
showMessagesStarted () {
441
444
return this .messages .length && this .messagesLoaded
442
445
},
You can’t perform that action at this time.
0 commit comments