fix modal

This commit is contained in:
Peter Maquiran
2024-04-02 11:15:28 +01:00
parent f34f80d8dc
commit 9e39ccdacd
2 changed files with 9 additions and 1 deletions
@@ -132,7 +132,7 @@
</button> </button>
</ion-buttons> </ion-buttons>
<ion-buttons slot="end"> <ion-buttons slot="end">
<button class="btn-cancel" fill="clear" color="#061b52" (click)="close()"> <button class="btn-cancel" fill="clear" color="#061b52" (click)="cancel()">
<ion-label>Cancelar</ion-label> <ion-label>Cancelar</ion-label>
</button> </button>
</ion-buttons> </ion-buttons>
@@ -398,6 +398,13 @@ export class NewPublicationPage implements OnInit {
close() { close() {
this.modalController.dismiss(this.PublicationFromMvService.form).then(() => {
alert('desmiss')
this.showLoader = true;
});
}
cancel() {
alert('this.PublicationFromMvService.form.send'+ this.PublicationFromMvService.form.send) alert('this.PublicationFromMvService.form.send'+ this.PublicationFromMvService.form.send)
if(this.PublicationFromMvService.form.send == false) { if(this.PublicationFromMvService.form.send == false) {
this.PublicationFromMvService.cancel() this.PublicationFromMvService.cancel()
@@ -405,6 +412,7 @@ export class NewPublicationPage implements OnInit {
} }
this.modalController.dismiss(this.PublicationFromMvService.form).then(() => { this.modalController.dismiss(this.PublicationFromMvService.form).then(() => {
alert('desmiss2')
this.showLoader = true; this.showLoader = true;
}); });
} }