2021-03-04 18:50:26 +01:00
|
|
|
<ion-header class="ion-no-border">
|
|
|
|
|
<ion-toolbar class="header-toolbar">
|
2021-03-16 14:33:36 +01:00
|
|
|
<div class="main-header width-100">
|
|
|
|
|
<div class="title-content width-100">
|
2021-10-27 09:49:50 +01:00
|
|
|
<div class="back-icon cursor-pointer">
|
2022-01-19 12:32:29 +01:00
|
|
|
<button title="Retroceder" class="btn-no-color" (click)="openGroupMessagesPage()">
|
2021-10-25 13:21:48 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
2022-10-18 14:51:24 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " src="assets/images/theme/doneIt/icons-calendar-arrow-left.svg"></ion-icon>
|
2021-10-25 13:21:48 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
|
2021-04-20 13:22:25 +01:00
|
|
|
</button>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="div-title">
|
|
|
|
|
<ion-label class="title">Contactos</ion-label>
|
|
|
|
|
</div>
|
2021-06-03 14:52:49 +01:00
|
|
|
<div>
|
|
|
|
|
<button class="btn-no-color adicionar" (click)="updateGroup()">
|
|
|
|
|
<ion-label>Adicionar</ion-label>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
<ion-toolbar class="toolbar-search">
|
|
|
|
|
<div class="search">
|
2023-07-16 21:38:37 +01:00
|
|
|
<ion-searchbar search-icon="undefined" debounce="500" (ionChange)="onChange($event)" placeholder="Pesquisar por contacto" ></ion-searchbar>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
</ion-header>
|
|
|
|
|
|
2021-03-29 16:01:58 +01:00
|
|
|
<ion-content class="width-100">
|
2021-03-04 18:50:26 +01:00
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
|
|
|
<ion-refresher-content>
|
|
|
|
|
</ion-refresher-content>
|
|
|
|
|
</ion-refresher>
|
2021-08-19 09:10:48 +01:00
|
|
|
|
2021-03-29 16:01:58 +01:00
|
|
|
<div class="main-content width-100">
|
|
|
|
|
<div class="members" *ngIf="members">
|
2021-03-04 18:50:26 +01:00
|
|
|
<ion-label class="members-label">Contactos selecção:</ion-label>
|
|
|
|
|
<ion-list class="members-list" *ngFor="let user of members">
|
2023-08-23 11:19:51 +01:00
|
|
|
<div class="members-checkbox" [class.inactive]="sessionStore.user.UserName == user.username">
|
2021-04-20 13:40:55 +01:00
|
|
|
<ion-checkbox disabled checked color="primary"></ion-checkbox>
|
2023-08-23 11:19:51 +01:00
|
|
|
<p class="ma-0">{{user.name }}</p>
|
2021-03-29 16:01:58 +01:00
|
|
|
<ion-icon class="{{user.status}}" name="ellipse"></ion-icon>
|
2021-04-20 13:22:25 +01:00
|
|
|
<button (click)="deleteMember(user)" class="btn-no-color detele-item-icon">
|
|
|
|
|
<ion-icon color="danger" name="close"></ion-icon>
|
|
|
|
|
</button>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-list>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-08-20 00:26:24 +01:00
|
|
|
<div *ngFor="let userContainer of userContainer | keyvalue;" >
|
|
|
|
|
|
|
|
|
|
<div class="item-divider">
|
|
|
|
|
<ion-label>{{ userContainer.key }}</ion-label>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
|
|
|
|
|
2023-08-20 00:26:24 +01:00
|
|
|
<div *ngFor="let user of userContainer.value" class="d-flex px-20 align-center">
|
|
|
|
|
<ion-checkbox [(ngModel)]="user.isChecked" color="primary" (click)="selectedContact(user)"></ion-checkbox>
|
|
|
|
|
<ion-label class="flex-grow-1 px-10">{{user.name}}</ion-label>
|
2021-03-29 16:01:58 +01:00
|
|
|
<div class="icon"><ion-icon class="{{user.status}}" name="ellipse"></ion-icon></div>
|
2021-03-04 18:50:26 +01:00
|
|
|
</div>
|
2023-08-20 00:26:24 +01:00
|
|
|
</div>
|
2021-08-19 09:10:48 +01:00
|
|
|
|
|
|
|
|
</div>
|
2021-03-04 18:50:26 +01:00
|
|
|
</ion-content>
|