mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user