style new group view desktop/tablet

This commit is contained in:
tiago.kayaya
2021-03-15 18:09:41 +01:00
parent 6fba6c0d64
commit 4c29d70adf
6 changed files with 38 additions and 18 deletions
+11
View File
@@ -60,6 +60,7 @@ export class ChatPage implements OnInit {
showEmptyComponent=true;
showMessages=false;
showContacts=false;
showNewGroup=false;
showGroupMessages=false;
@Output() getRoomInfo;
@@ -102,6 +103,7 @@ export class ChatPage implements OnInit {
closeAllDesktopComponents() {
this.showMessages=false;
this.showContacts=false;
this.showNewGroup=false;
this.showGroupMessages=false;
this.showEmptyComponent=false;
}
@@ -128,6 +130,15 @@ export class ChatPage implements OnInit {
this.showContacts=true;
}
}
openNewGroupPage() {
if( window.innerWidth <= 1024){
this.newGroup();
}
else{
this.closeAllDesktopComponents();
this.showNewGroup=true;
}
}
openGroupMessagesPage(rid) {
if( window.innerWidth <= 1024){
this.openGroupMessagesModal(rid);