This commit is contained in:
Peter Maquiran
2021-06-09 16:38:41 +01:00
parent 762b6b9f83
commit c9dc4c708c
36 changed files with 46 additions and 42 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export class AddNotePage implements OnInit {
this.documents = this.documents.filter( (e, i) => index != i);
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -504,7 +504,7 @@ export class CreateProcessPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -97,7 +97,7 @@ export class DarParecerPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
+1 -1
View File
@@ -171,7 +171,7 @@ export class DelegarPage implements OnInit {
this.taskParticipants = taskParticipants;
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -234,7 +234,7 @@ export class EditEventPage implements OnInit {
});
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -92,7 +92,7 @@ export class EventActionsPopoverPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -169,7 +169,7 @@ export class NewEventPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -464,7 +464,7 @@ export class DespachoPrPage implements OnInit {
return await popover.present();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -424,7 +424,7 @@ export class DespachoPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -53,7 +53,7 @@ export class DiplomaAssinarPage implements OnInit {
this.LoadTaskDetail(this.serialnumber);
}
goBack(){
goBack() {
let navigationExtras: NavigationExtras = {
queryParams: {
"diplomas": true,
@@ -150,18 +150,20 @@ export class DiplomaAssinarPage implements OnInit {
}
try {
await this.processes.CompleteTask(body).toPromise()
this.goBack();
this.successMessage()
this.successMessage(false, ()=>{
this.goBack();
})
} catch (error) {
this.badRequest()
}
}
close(){
close() {
this.modalController.dismiss();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -154,7 +154,9 @@ export class DiplomaPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.successMessage()
this.successMessage(false, ()=>{
})
} catch (error) {
this.badRequest()
}
@@ -272,7 +274,7 @@ export class DiplomaPage implements OnInit {
this.modalController.dismiss();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -128,7 +128,7 @@ export class ApproveEventModalPage implements OnInit {
try {
await this.processes.PostTaskAction(body).toPromise()
this.successMessage('Evento rejeitado', () =>{
this.router.navigate(['/home/gabinete-digital/event-list']);
})
@@ -220,7 +220,7 @@ export class ApproveEventModalPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -235,7 +235,7 @@ export class ApproveEventPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -305,7 +305,7 @@ export class BookMeetingModalPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -528,7 +528,7 @@ export class ExpedientTaskModalPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -364,7 +364,7 @@ export class ExpedienteDetailPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -440,7 +440,7 @@ export class ExpedientePrPage implements OnInit {
return await popover.present();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -418,7 +418,7 @@ export class PedidoPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
+1 -1
View File
@@ -205,7 +205,7 @@ export class LoginPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -56,7 +56,7 @@ export class NewActionPage implements OnInit {
this.modalController.dismiss();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -122,7 +122,7 @@ export class PublicationDetailPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -124,7 +124,7 @@ export class PublicationDetailPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
+1 -1
View File
@@ -22,7 +22,7 @@ export class ToastService {
toast.present();
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -235,7 +235,7 @@ export class ApproveEventPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -315,7 +315,7 @@ export class NewEventPage implements OnInit {
window['temp.path:/home/agenda/new-event.component.ts'] = {}
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -69,7 +69,7 @@ export class FingerprintPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -407,7 +407,7 @@ export class EditEventToApproveComponent implements OnInit {
});
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
+1 -1
View File
@@ -54,7 +54,7 @@ export class PinPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -145,7 +145,7 @@ export class DeplomaOptionsPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -281,7 +281,7 @@ export class DespachosOptionsPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -282,7 +282,7 @@ export class DespachosPrOptionsPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -289,7 +289,7 @@ export class OptsExpedientePrPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -285,7 +285,7 @@ export class RequestOptionsPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -59,7 +59,7 @@ export class NewActionPage implements OnInit {
}
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -275,7 +275,7 @@ export class NewPublicationPage implements OnInit {
} */
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -141,7 +141,7 @@ export class PublicationDetailPage implements OnInit {
async successMessage(message?: string, callback?) {
async successMessage(message?: any, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()