mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Attendess for new event for agenda
This commit is contained in:
@@ -166,8 +166,6 @@ export class AgendaPage implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.profile = "mdgpr";
|
this.profile = "mdgpr";
|
||||||
//Inicializar segment
|
|
||||||
/* localStorage.setItem('test', this.eventSelectedDate.toString()); */
|
|
||||||
|
|
||||||
this.router.events.forEach((event) => {
|
this.router.events.forEach((event) => {
|
||||||
if(event instanceof NavigationEnd && event.url == "/home/agenda") {
|
if(event instanceof NavigationEnd && event.url == "/home/agenda") {
|
||||||
@@ -180,7 +178,6 @@ export class AgendaPage implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
window.onresize = (event) => {
|
window.onresize = (event) => {
|
||||||
// if not table remove all component
|
// if not table remove all component
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
@@ -1002,6 +999,7 @@ export class AgendaPage implements OnInit {
|
|||||||
|
|
||||||
this.adding = data.type
|
this.adding = data.type
|
||||||
|
|
||||||
|
alert(this.adding)
|
||||||
this.cloneAllmobileComponent();
|
this.cloneAllmobileComponent();
|
||||||
this.mobileComponent.showAttendees = true;
|
this.mobileComponent.showAttendees = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@
|
|||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="add-people" (click)="openAttendees()">
|
<div class="add-people" (click)="addParticipants()">
|
||||||
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -154,13 +154,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class-no-height flex-grow-1">
|
<div class="ion-input-class-no-height flex-grow-1">
|
||||||
<div class="list-people">
|
<div class="list-people">
|
||||||
|
|
||||||
<ion-item lines="none">
|
<ion-item lines="none">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-label class="list-people-title">Com conhecimento</ion-label>
|
<ion-label *ngIf="taskParticipantsCc.length ==0" class="list-people-title">Com conhecimento</ion-label>
|
||||||
|
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="add-people">
|
<div class="add-people" (click)="addParticipantsCc()">
|
||||||
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -132,10 +132,21 @@ export class NewEventPage implements OnInit {
|
|||||||
this.setIntervenientCC.emit([]);
|
this.setIntervenientCC.emit([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async openAttendees(){
|
|
||||||
|
|
||||||
this.saveTemporaryData();
|
async addParticipants() {
|
||||||
this.openAttendeesComponent.emit();
|
this.openAttendeesComponent.emit({
|
||||||
|
type: "intervenient"
|
||||||
|
});
|
||||||
|
|
||||||
|
this.clearContact.emit();
|
||||||
|
}
|
||||||
|
|
||||||
|
async addParticipantsCc() {
|
||||||
|
this.openAttendeesComponent.emit({
|
||||||
|
type: "CC"
|
||||||
|
});
|
||||||
|
|
||||||
|
this.clearContact.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
saveTemporaryData(){
|
saveTemporaryData(){
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export class AttendeeModalPage implements OnInit {
|
|||||||
@Input() adding: "intervenient" | "CC";
|
@Input() adding: "intervenient" | "CC";
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.fetchContacts("");
|
this.fetchContacts("");
|
||||||
|
|
||||||
if(this.taskParticipants == null || this.taskParticipants == undefined){
|
if(this.taskParticipants == null || this.taskParticipants == undefined){
|
||||||
|
|||||||
Reference in New Issue
Block a user