improve setup meeting from task

This commit is contained in:
Peter Maquiran
2024-10-18 16:22:45 +01:00
parent 3f41e9e9c0
commit 661b449fb4
48 changed files with 253 additions and 995 deletions
+15 -8
View File
@@ -1,8 +1,8 @@
import { Component, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { ContactsService } from 'src/app/services/contacts.service';
import { EventPerson } from 'src/app/models/eventperson.model';
import { ThemeService } from 'src/app/services/theme.service'
import { AgendaService } from 'src/app/module/agenda/domain/agenda.service'
@Component({
selector: 'app-sender',
@@ -18,8 +18,9 @@ export class SenderPage implements OnInit {
selectedUser: string;
constructor(private modalController:ModalController,
private ContactsService: ContactsService,
public ThemeService: ThemeService) {
public ThemeService: ThemeService,
private AgendaService: AgendaService
) {
}
@@ -27,11 +28,17 @@ export class SenderPage implements OnInit {
this.getSender();
}
getSender(){
this.ContactsService.getContacts("").subscribe(res=>{
this.contacts = res;
this.showContacts = res
});
async getSender(){
const result = await this.AgendaService.setDefaultParticipants()
if(result.isOk()) {
if(result.value) {
console.log('Attendes Email', result.value)
this.contacts = result.value as any;
this.showContacts = result.value as any
}
}
}
filterContact(event?:any){