2020-09-10 09:48:37 +01:00
|
|
|
<ion-header>
|
2020-12-16 15:07:28 +01:00
|
|
|
<app-header></app-header>
|
|
|
|
|
</ion-header>
|
|
|
|
|
<ion-header class="ion-no-border">
|
|
|
|
|
<ion-toolbar class="bg-blue">
|
|
|
|
|
<div class="main-header">
|
|
|
|
|
<div class="title-content">
|
|
|
|
|
<div class="div-title">
|
|
|
|
|
<ion-label class="title">Chat</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-icon">
|
|
|
|
|
<ion-icon slot="end" src="assets/images/icons-chat-new-group.svg" ></ion-icon>
|
|
|
|
|
<ion-icon slot="end" src="assets/images/icons-chat-new-conversation.svg" [routerLink]="['/home/chat/newchat']"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-09-10 09:48:37 +01:00
|
|
|
</ion-toolbar>
|
|
|
|
|
</ion-header>
|
|
|
|
|
|
|
|
|
|
<ion-content>
|
2020-12-16 15:07:28 +01:00
|
|
|
<div class="main-content">
|
2020-10-30 15:22:35 +01:00
|
|
|
<ion-toolbar >
|
|
|
|
|
<ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange()">
|
|
|
|
|
<ion-segment-button value="Contactos">
|
|
|
|
|
Contactos
|
|
|
|
|
</ion-segment-button>
|
|
|
|
|
<ion-segment-button value="Grupos">
|
|
|
|
|
Grupos
|
|
|
|
|
</ion-segment-button>
|
|
|
|
|
</ion-segment>
|
|
|
|
|
</ion-toolbar>
|
2020-12-16 15:07:28 +01:00
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
|
|
|
</ion-refresher>
|
2020-10-30 15:22:35 +01:00
|
|
|
<div [ngSwitch]="segment">
|
2020-12-16 15:07:28 +01:00
|
|
|
<ion-list *ngSwitchCase="'Contactos'">
|
2020-10-30 15:22:35 +01:00
|
|
|
<ion-item-group>
|
|
|
|
|
<ion-item-sliding>
|
2020-12-17 12:02:46 +01:00
|
|
|
<ion-item *ngFor="let user of userConnectedList" (click)="startConversation(user)">
|
2020-10-30 15:22:35 +01:00
|
|
|
<ion-icon slot="start" src="assets/images/icons-chat-chat-40.svg" class="iconschatchat-40"></ion-icon>
|
|
|
|
|
<div>
|
2020-11-03 11:52:21 +01:00
|
|
|
<h3>{{user.name}}</h3>
|
2020-10-30 15:22:35 +01:00
|
|
|
<p>Podemos marcar reunião para amanha</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
</ion-item-sliding>
|
|
|
|
|
</ion-item-group>
|
|
|
|
|
</ion-list>
|
|
|
|
|
<ion-list *ngSwitchCase="'Grupos'" >
|
|
|
|
|
<ion-item-group>
|
|
|
|
|
<ion-item-sliding>
|
2020-11-03 11:52:21 +01:00
|
|
|
<ion-item *ngFor="let group of groupList">
|
2020-10-30 15:22:35 +01:00
|
|
|
<ion-icon slot="start" src="assets/images/icons-chat-group-chat-40.svg" class="iconschatgroup-chat-40"></ion-icon>
|
|
|
|
|
<div>
|
2020-11-03 11:52:21 +01:00
|
|
|
<h3>{{group.name}}</h3>
|
2020-10-30 15:22:35 +01:00
|
|
|
<p>Grande momento.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
</ion-item-sliding>
|
|
|
|
|
</ion-item-group>
|
|
|
|
|
|
|
|
|
|
</ion-list>
|
|
|
|
|
</div>
|
2020-12-16 15:07:28 +01:00
|
|
|
</div>
|
2020-09-10 09:48:37 +01:00
|
|
|
</ion-content>
|
2020-10-30 15:22:35 +01:00
|
|
|
|