mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Fix
This commit is contained in:
@@ -1,9 +1,26 @@
|
|||||||
import { Injectable } from '@angular/core';
|
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({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class ModalService {
|
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') {
|
else if(actionName == 'Arquivar') {
|
||||||
await this.arquivar(res.data.note, docs);
|
await this.arquivar(res.data.note, docs);
|
||||||
this.popoverController.dismiss('close')
|
this.popoverController.dismiss('close')
|
||||||
|
this.modalController.dismiss('close');
|
||||||
|
alert('close')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -255,7 +257,6 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
|
||||||
this.toastService.successMessage('Processo arquivado')
|
this.toastService.successMessage('Processo arquivado')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não arquivado')
|
this.toastService.badRequest('Processo não arquivado')
|
||||||
|
|||||||
Reference in New Issue
Block a user