mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
improve setup meeting from task
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user