pull made2

This commit is contained in:
Eudes Inácio
2023-07-21 13:09:53 +01:00
14 changed files with 68 additions and 105 deletions
@@ -20,7 +20,7 @@
<p><span class="date">{{customDate}}</span></p>
</ion-label>
<ion-label>
<p><span class="color-red">{{ task.Deadline }}</span></p>
<p><span class="color-red">{{ task.DeadlineType }}</span></p>
</ion-label>
<ion-label>
<p class="d-flex mt-10"><span class="label">{{ task.activityInstanceName }}</span></p>
@@ -22,7 +22,7 @@
<button (click)="openAddNoteModal('Concluir diploma')" class="btn-cancel" shape="round" >Concluir</button>
</div>
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Assinar Diploma'">
<button (click)="openAddNoteModal('Assinar Diploma')" class="btn-cancel" shape="round" >Assinado</button>
<button (click)="AssinarNew()" class="btn-cancel" shape="round" >Assinado</button>
</div>
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Assinar Diploma'">
<button (click)="openAddNoteModal('AssinarNew')" class="btn-cancel" shape="round" >Assinar</button>
@@ -74,7 +74,7 @@ export class DiplomaOptionsPage implements OnInit {
});
modal.onDidDismiss().then(async (res) => {
if(res.data){
if(res.data) {
const DocumentToSave = res.data.documents.map((e) => {
@@ -105,7 +105,7 @@ export class DiplomaOptionsPage implements OnInit {
await this.arquivar(res.data.note, docs);
this.goBack();
} else if (actionName =='AssinarNew') {
await this.AssinarNew(res.data.note, docs)
await this.AssinarNew()
}
}
}, (error) => {
@@ -235,7 +235,7 @@ export class DiplomaOptionsPage implements OnInit {
}
}
async AssinarNew(note:string, documents:any) {
async AssinarNew() {
let body = {
"InstanceId": this.task.InstanceID,
"FolderId": this.task.FolderID,
@@ -76,10 +76,11 @@ export class EventDetailsDocumentsOptionsPage implements OnInit {
"path": document.path,
"ownerId": document.ownerId
}
this.processService.SaveDraftByID(document.DocId, objectDraft).subscribe((res) => [
this.erroHandler.httpsSucessMessagge('Draft Save'),
this.modalController.dismiss()
],(error) => {
this.processService.SaveDraftByID(document.DocId, objectDraft).subscribe((res) => {
this.erroHandler.httpsSucessMessagge('Draft Save');
this.modalController.dismiss();
window['tinyupdate']()
},(error) => {
this.erroHandler.httpStatusHandle(error)
})