mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Fix bug
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<name>gabinete digital</name>
|
<name>gabinete digital</name>
|
||||||
<description>An awesome Ionic/Cordova app.</description>
|
<description>An awesome Ionic/Cordova app.</description>
|
||||||
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
|
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
|
||||||
<content src="index.html" />
|
<content original-src="index.html" src="http://localhost:8101" />
|
||||||
<access origin="*" />
|
<access origin="*" />
|
||||||
<allow-navigation href="*" />
|
<allow-navigation href="*" />
|
||||||
<allow-navigation href="*" />
|
<allow-navigation href="*" />
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Editar Evento</ion-label>
|
<ion-label class="title">Editar Evento aganda</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ion-progress-bar class="calendar-progress-bar" type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
<ion-progress-bar class="calendar-progress-bar" type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
@@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
|
|
||||||
|
|
||||||
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
||||||
<ion-input placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
|
<ion-input placeholder="Assunto*" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||||
</div>
|
</div>
|
||||||
@@ -284,7 +282,7 @@
|
|||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex container-div width-100" *ngFor="let document of postEvent.Attachments; let i = index" >
|
<div class="d-flex container-div width-100" *ngFor="let document of loadedEventAttachments; let i = index" >
|
||||||
<ion-list class="width-100 list" *ngIf="!document.remove">
|
<ion-list class="width-100 list" *ngIf="!document.remove">
|
||||||
<ion-item class="width-100">
|
<ion-item class="width-100">
|
||||||
<ion-label class="width-100">
|
<ion-label class="width-100">
|
||||||
@@ -296,7 +294,6 @@
|
|||||||
<span class="close-button text-black cursor-pointer" (click)="deleteAttachment(document.Id, i)" >
|
<span class="close-button text-black cursor-pointer" (click)="deleteAttachment(document.Id, i)" >
|
||||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p><span class="span-left">{{document.Stakeholders}}</span><span class="span-right"> {{document.CreateDate | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
<p><span class="span-left">{{document.Stakeholders}}</span><span class="span-right"> {{document.CreateDate | date: 'dd-MM-yyyy HH:mm'}} </span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
|
|||||||
@@ -125,6 +125,8 @@ export class EditEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
this.loadedEventAttachments = this.loadedEventAttachments.concat(this.postEvent.Attachments)
|
||||||
|
|
||||||
this.getRecurrenceTypes();
|
this.getRecurrenceTypes();
|
||||||
|
|
||||||
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
|
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
|
||||||
@@ -268,15 +270,18 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
this.clearPostEvent.emit();
|
this.clearPostEvent.emit();
|
||||||
this.deleteTemporaryData();
|
this.deleteTemporaryData();
|
||||||
this.close();
|
|
||||||
|
|
||||||
this.saveDocument()
|
await this.saveDocument()
|
||||||
|
|
||||||
|
this.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
saveDocument() {
|
async saveDocument() {
|
||||||
|
|
||||||
this.loadedEventAttachments.forEach((e)=>{
|
console.log(this.loadedEventAttachments)
|
||||||
|
|
||||||
|
await this.loadedEventAttachments.forEach( async (e)=>{
|
||||||
|
|
||||||
const id: any = e.Id
|
const id: any = e.Id
|
||||||
const remove = e['remove']
|
const remove = e['remove']
|
||||||
@@ -329,8 +334,6 @@ export class EditEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
saveTemporaryData() {
|
saveTemporaryData() {
|
||||||
|
|
||||||
window['temp.path:/home/agenda/edit-event.component.ts'] = {
|
window['temp.path:/home/agenda/edit-event.component.ts'] = {
|
||||||
@@ -413,7 +416,6 @@ export class EditEventPage implements OnInit {
|
|||||||
console.log( this.loadedEventAttachments)
|
console.log( this.loadedEventAttachments)
|
||||||
this.loadedEventAttachments.push(ApplicationIdDocumentToSave)
|
this.loadedEventAttachments.push(ApplicationIdDocumentToSave)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Editar evento por aprovar::.</ion-label>
|
<ion-label class="title">Editar evento por aprovar</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|||||||
Reference in New Issue
Block a user