mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Improve edit event to approve
This commit is contained in:
@@ -196,7 +196,7 @@
|
||||
<span class="app-name" *ngIf="document.ApplicationId == 8"> Correspondencia </span>
|
||||
<span class="app-name" *ngIf="document.ApplicationId == 386"> AccoesPresidenciais </span>
|
||||
<span class="app-name" *ngIf="document.ApplicationId == 361 "> ArquivoDespachoElect </span>
|
||||
<span class="close-button text-black cursor-pointer" (click)="deleteAttachment(document.Id)" >
|
||||
<span class="close-button text-black cursor-pointer" (click)="deleteAttachment(document)" >
|
||||
<ion-icon class="font-20" src="assets/images/icons-delete-25.svg"></ion-icon>
|
||||
</span>
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
|
||||
this.loadedAttachments.forEach((document:any)=>{
|
||||
if(document['action'] == 'add'){
|
||||
if(document['action'] == 'add') {
|
||||
delete document.action
|
||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{});
|
||||
} else if(document['action'] == 'delete') {
|
||||
@@ -266,8 +266,10 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
alert('save')
|
||||
|
||||
|
||||
this.modalController.dismiss();
|
||||
|
||||
}
|
||||
|
||||
async openAttendees() {
|
||||
@@ -345,7 +347,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
deleteAttachment(attachment: Attachment) {
|
||||
|
||||
this.attachmentsService.deleteEventAttachmentById(attachment.Id).subscribe( res=>{})
|
||||
attachment['action'] == 'delete'
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user