This commit is contained in:
Peter Maquiran
2021-08-20 14:39:06 +01:00
parent f5cd6a0e92
commit 479ebb8ee6
2 changed files with 20 additions and 2 deletions
+18 -1
View File
@@ -1,9 +1,26 @@
import { Injectable } from '@angular/core';
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
import { AnimationController, ModalController, NavParams, PopoverController } from '@ionic/angular';
@Injectable({
providedIn: 'root'
})
export class ModalService {
constructor() { }
constructor(
private modalController: ModalController,
) { }
BookMeetingModalPage(task, { classs, backdropDismiss = false }) {
return this.modalController.create({
component: BookMeetingModalPage,
componentProps: {
task: task,
},
cssClass: classs,
backdropDismiss
});
}
}
@@ -237,6 +237,8 @@ export class RequestOptionsPage implements OnInit {
else if(actionName == 'Arquivar') {
await this.arquivar(res.data.note, docs);
this.popoverController.dismiss('close')
this.modalController.dismiss('close');
alert('close')
}
}
});
@@ -255,7 +257,6 @@ export class RequestOptionsPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.toastService.successMessage('Processo arquivado')
} catch (error) {
this.toastService.badRequest('Processo não arquivado')