improve search loader and chat user flow

This commit is contained in:
Peter Maquiran
2022-10-13 14:37:03 +01:00
parent a2782e0cbe
commit 0bbf046010
8 changed files with 77 additions and 28 deletions
@@ -7,7 +7,8 @@
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
</div>
<div class="div-title">
<ion-label class="title">Nova Conversa</ion-label>
<!-- Desktop -->
<ion-label class="title">Nova Conversas</ion-label>
</div>
</div>
</div>
@@ -25,7 +25,8 @@ export class ContactsPage implements OnInit {
@Output() openMessage:EventEmitter<any> = new EventEmitter<any>();
@Output() emptyTextDescriptionOpen:EventEmitter<any> = new EventEmitter<any>();
@Output() backToChat:EventEmitter<any> = new EventEmitter<any>();
@Output() backToChat:EventEmitter<any> = new EventEmitter<any>();
@Output() closeAllDesktopComponents:EventEmitter<any> = new EventEmitter<any>();
constructor(
private modalController: ModalController,
@@ -86,7 +87,12 @@ export class ContactsPage implements OnInit {
}
close() {
this.backToChat.emit({roomId: this.roomId});
if(this.roomId) {
this.backToChat.emit({roomId: this.roomId});
} else {
this.closeAllDesktopComponents.emit();
}
}
clicked() {
@@ -82,7 +82,12 @@ export class NewGroupPage implements OnInit{
this.RouteService.goBack();
this.dataService.set("link", false);
} else {
this.backToChat.emit({roomId: this.roomId});
if(this.roomId) {
this.backToChat.emit({roomId: this.roomId});
} else {
this.closeAllDesktopComponents.emit();
}
}
}