This commit is contained in:
Peter Maquiran
2023-08-14 12:15:18 +01:00
parent fa6450f328
commit 0f3416cc30
7 changed files with 28 additions and 11 deletions
+1 -1
View File
@@ -187,7 +187,7 @@
<app-empty-chat [texto]="emptyTextDescription"
class="height-100 flex-column"
[style.display]="showEmptyComponent ? 'flex' : 'none'"
[style.display]="showEmptyComponent && !showContacts && !showNewGroup && !showEditGroup && !showGroupContacts && !showGroupMessages && !showNewEvent ? 'flex' : 'none'"
#messagecontainer>
</app-empty-chat>
+2 -1
View File
@@ -282,7 +282,7 @@ export class ChatPage implements OnInit {
}
}
openContactsPage() {
this.segment = 'Contactos';
this.idSelected = '';
this.closeAllDesktopComponents();
@@ -295,6 +295,7 @@ export class ChatPage implements OnInit {
}
}
openNewGroupPage() {
this.segment = 'Grupos';
this.idSelected = '';
if (window.innerWidth < 701) {
this.newGroup();
@@ -83,7 +83,7 @@
</div>
</div>
<div *ngIf="segmentVista == 'listview' " class="d-flex px-20 justify-content-end width-100">
<div *ngIf="segmentVista == 'listview' " class="d-flex px-20-rem pb-20 justify-content-end width-100">
<div title="Pesquisa" class="d-flex align-center cursor-pointer width-100 justify-end">
<!-- <div (click)="openSearch();showSearch=true" *ngIf="!showSearch" class="d-flex">
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'doneIt' " class="font-35-rem" src="assets/images/theme/doneIt/icons-search.svg"></ion-icon>
@@ -706,6 +706,22 @@ export class ChatSystemService {
}
}
async createGroup__(name, customFields = {}) {
const res: any = await this.createPrivateRoom(name, SessionStore.user.UserName, customFields);
console.log('room is created', res)
if(res?.result?.rid) {
try {
await this.getAllRooms();
return res
} catch (e) {}
console.log('room is loaded')
return res
} else {
return res
}
}
getGroupByName(name ) {
return this._group.find( e=> e.name == name)
}
+1 -1
View File
@@ -44,7 +44,7 @@ export class TaskService {
AllProcess = []
showLoader: boolean = false
showLoaderNum = 0
showLoaderNum: number = 0
loadCount = false
loadNum = 0
@@ -180,7 +180,7 @@
</ion-item-sliding>
</div>
<div *ngIf="!TaskService.showLoaderNum != 0 && AllProcess.length == 0"
<div *ngIf="TaskService.showLoaderNum == 0 && AllProcess.length == 0"
class="empty-list d-flex height-100 align-center justify-content-center">
<span>Lista vazia</span>
</div>