This commit is contained in:
Peter Maquiran
2021-06-09 16:34:14 +01:00
parent 4674baa0bd
commit 762b6b9f83
37 changed files with 282 additions and 87 deletions
@@ -145,7 +145,7 @@ export class DeplomaOptionsPage implements OnInit {
}
async successMessage(message?: string) {
async successMessage(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -183,12 +183,15 @@ export class DeplomaOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
async badRequest(message?: string) {
async badRequest(message?: string, callback?) {
const modal = await this.modalController.create({
component: BadRequestPage,
componentProps: {
@@ -200,6 +203,9 @@ export class DeplomaOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
@@ -281,7 +281,7 @@ export class DespachosOptionsPage implements OnInit {
async successMessage(message?: string) {
async successMessage(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -320,12 +320,15 @@ export class DespachosOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
async badRequest(message?: string) {
async badRequest(message?: string, callback?) {
const modal = await this.modalController.create({
component: BadRequestPage,
componentProps: {
@@ -337,6 +340,9 @@ export class DespachosOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
@@ -282,7 +282,7 @@ export class DespachosPrOptionsPage implements OnInit {
async successMessage(message?: string) {
async successMessage(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -321,12 +321,15 @@ export class DespachosPrOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
async badRequest(message?: string) {
async badRequest(message?: string, callback?) {
const modal = await this.modalController.create({
component: BadRequestPage,
componentProps: {
@@ -338,6 +341,9 @@ export class DespachosPrOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
@@ -289,7 +289,7 @@ export class OptsExpedientePrPage implements OnInit {
}
async successMessage(message?: string) {
async successMessage(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -328,12 +328,15 @@ export class OptsExpedientePrPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
async badRequest(message?) {
async badRequest(message?: string, callback?) {
const modal = await this.modalController.create({
component: BadRequestPage,
componentProps: {
@@ -285,7 +285,7 @@ export class RequestOptionsPage implements OnInit {
async successMessage(message?: string) {
async successMessage(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
@@ -324,12 +324,15 @@ export class RequestOptionsPage implements OnInit {
modal.present()
setTimeout(()=>{
if (callback) {
callback()
}
modal.dismiss()
},7000)
}
async badRequest(message?) {
async badRequest(message?: string, callback?) {
const enterAnimation = (baseEl: any) => {
const backdropAnimation = this.animationController.create()
.addElement(baseEl.querySelector('ion-backdrop')!)