mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
merge
This commit is contained in:
@@ -10,6 +10,7 @@ export class Attachment {
|
||||
SourceId: string
|
||||
SourceName: string
|
||||
Stakeholders: string
|
||||
docId?: number
|
||||
//Data: any;
|
||||
}
|
||||
|
||||
|
||||
@@ -675,8 +675,10 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
deleteAttachment(attachmentID: string, index) {
|
||||
|
||||
const id: any = this.loadedEventAttachments[index].Id
|
||||
console.log(this.loadedEventAttachments)
|
||||
const id: any = this.loadedEventAttachments[index].docId
|
||||
let update = this.removeItemById(this.loadedEventAttachments, id)
|
||||
this.loadedEventAttachments = update
|
||||
this.deletedAttachmentsList.push(id)
|
||||
|
||||
/* if (id == 'add') {
|
||||
@@ -688,6 +690,10 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
removeItemById(array, id) {
|
||||
return array.filter(item => item.docId !== id);
|
||||
}
|
||||
|
||||
async getDoc() {
|
||||
const modal = await this.modalController.create({
|
||||
component: SearchPage,
|
||||
|
||||
@@ -77,6 +77,7 @@ export class ApproveEventPage implements OnInit {
|
||||
});
|
||||
|
||||
window['approve-event-getTask'] = () => {
|
||||
// Mensagem de sucessos
|
||||
this.getTask()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,7 +320,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
/* this.eventsService.postEventToApproveEdit(event).subscribe(()=>{
|
||||
this.httpErroHalde.httpsSucessMessagge('Editar evento')
|
||||
window['approve-event-getTask']()
|
||||
}, error =>{
|
||||
}, error => {
|
||||
this.httpErroHalde.httpStatusHandle(error)
|
||||
}) */
|
||||
|
||||
@@ -330,6 +330,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
this.close();
|
||||
}, ((error) => {
|
||||
this.httpErroHalde.httpStatusHandle(error)
|
||||
console.log('edit event error: ', error)
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user