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:
8787| messagesLoaded (3) | Boolean | - | false |
8888| menuActions (4) | Array | - | [ ] |
8989| messageActions (5) | Array | - | (4) |
90+ | showAddRoom | Boolean | - | true |
9091| showFiles | Boolean | - | true |
9192| showEmojis | Boolean | - | true |
9293| showReactionEmojis | Boolean | - | true |
Original file line number Diff line number Diff line change 66 :loadingRooms =" loadingRooms"
77 :room =" room"
88 :textMessages =" t"
9+ :showAddRoom =" showAddRoom"
910 :showRoomsList =" showRoomsList"
1011 :isMobile =" isMobile"
1112 @fetchRoom =" fetchRoom"
@@ -73,6 +74,7 @@ export default {
7374 { name: ' deleteMessage' , title: ' Delete Message' , onlyMe: true }
7475 ]
7576 },
77+ showAddRoom: { type: Boolean , default: true },
7678 showFiles: { type: Boolean , default: true },
7779 showEmojis: { type: Boolean , default: true },
7880 showReactionEmojis: { type: Boolean , default: true },
Original file line number Diff line number Diff line change 1414 autocomplete =" off"
1515 @input =" searchRoom"
1616 />
17- <div class =" svg-button" @click =" addRoom" >
17+ <div v-if = " showAddRoom " class =" svg-button add-icon " @click =" addRoom" >
1818 <svg-icon name =" add" />
1919 </div >
2020 </div >
@@ -75,6 +75,7 @@ export default {
7575 props: {
7676 textMessages: { type: Object , required: true },
7777 showRoomsList: { type: Boolean , required: true },
78+ showAddRoom: { type: Boolean , required: true },
7879 isMobile: { type: Boolean , required: true },
7980 rooms: { type: Array , required: true },
8081 loadingRooms: { type: Boolean , required: true },
@@ -147,11 +148,14 @@ export default {
147148 }
148149}
149150
151+ .add-icon {
152+ margin-left : 20px ;
153+ }
154+
150155input {
151156 background : var (--chat-bg-color-input );
152157 color : var (--chat-color );
153158 border-radius : 4px ;
154- margin-right : 20px ;
155159 width : 100% ;
156160 font-size : 15px ;
157161 outline : 0 ;
You can’t perform that action at this time.
0 commit comments