generate fix

This commit is contained in:
Peter Maquiran
2023-05-19 12:00:51 +01:00
parent a526b91532
commit 0efec4a16b
23 changed files with 184 additions and 208 deletions
@@ -93,6 +93,7 @@ export class ApproveEventPage implements OnInit {
await this.processes.PostTaskAction(body).toPromise()
this.modalController.dismiss(serialNumber);
this.httpErroHandle.httpsSucessMessagge('Aprovar')
this.TaskService.loadEventosParaAprovacao();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
} finally {
@@ -112,6 +113,7 @@ export class ApproveEventPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Rejeitar');
this.TaskService.loadEventosParaAprovacao();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
@@ -201,6 +203,7 @@ export class ApproveEventPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise();
this.httpErroHandle.httpsSucessMessagge('Rever')
this.TaskService.loadEventosParaAprovacao();
this.close();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
@@ -213,6 +216,8 @@ export class ApproveEventPage implements OnInit {
this.toastService._badRequest('É necessário adicionar uma nota');
}
}
} else {
}
@@ -31,7 +31,7 @@
<div class="main-content">
<ion-virtual-scroll [items]="ChatSystemService.users | filter:textSearch: 'name'" approxItemHeight="70px" [headerFn]="separateLetter">
<ion-virtual-scroll [items]="userList" approxItemHeight="70px" [headerFn]="separateLetter">
<div class="item-divider" *virtualHeader="let header">
<ion-label>{{header}}</ion-label>
@@ -28,6 +28,9 @@ export class ContactsPage implements OnInit {
@Output() backToChat:EventEmitter<any> = new EventEmitter<any>();
@Output() closeAllDesktopComponents:EventEmitter<any> = new EventEmitter<any>();
userList = this.ChatSystemService.users
constructor(
private modalController: ModalController,
private chatService: ChatService,
@@ -46,7 +49,14 @@ export class ContactsPage implements OnInit {
}
onChange(event) {
this.textSearch = event.detail.value;
this.textSearch = event.detail.value.toLowerCase();
this.userList = this.ChatSystemService.users.filter((e) => {
const username = e.name.toLowerCase()
return username.includes(this.textSearch)
})
}
openMessagesPage(username:string) {
@@ -88,6 +88,7 @@ font-size: 25px;
}
.ion-item-class-2{
margin: 0px auto;
overflow: hidden;
}
.ion-icon-class{
width: 45px;