File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ You can import it as a custom component:
87
87
| messagesLoaded (3) | Boolean | - | false |
88
88
| menuActions (4) | Array | - | [ ] |
89
89
| messageActions (5) | Array | - | (4) |
90
+ | showAddRoom | Boolean | - | true |
90
91
| showFiles | Boolean | - | true |
91
92
| showEmojis | Boolean | - | true |
92
93
| showReactionEmojis | Boolean | - | true |
Original file line number Diff line number Diff line change 6
6
:loadingRooms =" loadingRooms"
7
7
:room =" room"
8
8
:textMessages =" t"
9
+ :showAddRoom =" showAddRoom"
9
10
:showRoomsList =" showRoomsList"
10
11
:isMobile =" isMobile"
11
12
@fetchRoom =" fetchRoom"
@@ -73,6 +74,7 @@ export default {
73
74
{ name: ' deleteMessage' , title: ' Delete Message' , onlyMe: true }
74
75
]
75
76
},
77
+ showAddRoom: { type: Boolean , default: true },
76
78
showFiles: { type: Boolean , default: true },
77
79
showEmojis: { type: Boolean , default: true },
78
80
showReactionEmojis: { type: Boolean , default: true },
Original file line number Diff line number Diff line change 14
14
autocomplete =" off"
15
15
@input =" searchRoom"
16
16
/>
17
- <div class =" svg-button" @click =" addRoom" >
17
+ <div v-if = " showAddRoom " class =" svg-button add-icon " @click =" addRoom" >
18
18
<svg-icon name =" add" />
19
19
</div >
20
20
</div >
@@ -75,6 +75,7 @@ export default {
75
75
props: {
76
76
textMessages: { type: Object , required: true },
77
77
showRoomsList: { type: Boolean , required: true },
78
+ showAddRoom: { type: Boolean , required: true },
78
79
isMobile: { type: Boolean , required: true },
79
80
rooms: { type: Array , required: true },
80
81
loadingRooms: { type: Boolean , required: true },
@@ -147,11 +148,14 @@ export default {
147
148
}
148
149
}
149
150
151
+ .add-icon {
152
+ margin-left : 20px ;
153
+ }
154
+
150
155
input {
151
156
background : var (--chat-bg-color-input );
152
157
color : var (--chat-color );
153
158
border-radius : 4px ;
154
- margin-right : 20px ;
155
159
width : 100% ;
156
160
font-size : 15px ;
157
161
outline : 0 ;
You can’t perform that action at this time.
0 commit comments