mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
imporve attendie and add video upload
This commit is contained in:
@@ -395,6 +395,7 @@
|
||||
[adding]="adding"
|
||||
[taskParticipants]="taskParticipants"
|
||||
[taskParticipantsCc]="taskParticipantsCc"
|
||||
[hideExternalDomain]="false"
|
||||
(setIntervenient)="setIntervenient($event)"
|
||||
(setIntervenientCC)="setIntervenientCC($event)"
|
||||
>
|
||||
|
||||
@@ -97,7 +97,7 @@ export class NewEventPage implements OnInit {
|
||||
environment = environment
|
||||
eventPersons: EventPerson[];
|
||||
contacts: EventPerson[];
|
||||
|
||||
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -552,6 +552,7 @@ export class NewEventPage implements OnInit {
|
||||
const modal = await this.modalController.create({
|
||||
component: AttendeesPageModal,
|
||||
componentProps: {
|
||||
hideExternalDomain: false,
|
||||
adding: this.adding,
|
||||
taskParticipants: this.taskParticipants,
|
||||
taskParticipantsCc: this.taskParticipantsCc
|
||||
|
||||
@@ -26,6 +26,7 @@ export class AttendeesPageModal implements OnInit {
|
||||
taskParticipantsCc:EventPerson[] = [];
|
||||
loggeduser: LoginUserRespose;
|
||||
@Input() loggedAttendSon: boolean;
|
||||
hideExternalDomain = true;
|
||||
taskType: any;
|
||||
|
||||
|
||||
@@ -41,6 +42,7 @@ export class AttendeesPageModal implements OnInit {
|
||||
this.taskParticipants = this.navParams.get('taskParticipants');
|
||||
this.taskParticipantsCc = this.navParams.get('taskParticipantsCc');
|
||||
this.taskType = this.navParams.get('taskType');
|
||||
this.hideExternalDomain = this.navParams.get('hideExternalDomain');
|
||||
|
||||
this.loggeduser = SessionStore.user;
|
||||
|
||||
@@ -134,8 +136,15 @@ export class AttendeesPageModal implements OnInit {
|
||||
async fetchContacts(filter: string) {
|
||||
this.showLoader = true;
|
||||
|
||||
this.contactsService.getContacts(filter).subscribe(result =>
|
||||
{
|
||||
this.contactsService.getContacts(filter).subscribe(_result => {
|
||||
|
||||
let result
|
||||
if(this.hideExternalDomain) {
|
||||
result = _result.filter( e => e.UserType == 'GD')
|
||||
} else {
|
||||
result = _result
|
||||
}
|
||||
|
||||
if (this.eventPersons != null)
|
||||
{
|
||||
this.eventPersons.forEach(attendee => {
|
||||
|
||||
@@ -72,7 +72,7 @@ export class EditEventPage implements OnInit {
|
||||
else{
|
||||
this.pageId = paramMap.get('eventId');
|
||||
eventid = paramMap.get('eventId');
|
||||
|
||||
|
||||
|
||||
}
|
||||
if (paramMap.has("caller")){
|
||||
@@ -89,6 +89,7 @@ export class EditEventPage implements OnInit {
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: AttendeesPageModal,
|
||||
componentProps: {
|
||||
hideExternalDomain: false,
|
||||
eventAttendees: this.loadedEvent.Attendees
|
||||
},
|
||||
cssClass: 'attendee modal-desktop',
|
||||
@@ -165,7 +166,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
this.activatedRoute.paramMap.subscribe(paramMap =>{
|
||||
if (paramMap.has("profile")){
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
@@ -193,7 +194,7 @@ export class EditEventPage implements OnInit {
|
||||
{
|
||||
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
|
||||
this.loadedEventAttachments = res;
|
||||
|
||||
|
||||
|
||||
},((erro) => {
|
||||
console.error('loadAttchament', erro)
|
||||
|
||||
Reference in New Issue
Block a user