improve form validation

This commit is contained in:
Peter Maquiran
2021-07-14 09:46:03 +01:00
parent d9f1ef7bba
commit 6176112001
5 changed files with 27 additions and 49 deletions
@@ -367,14 +367,14 @@ export class PublicationsPage implements OnInit {
//translucent: true
});
await modal.present();
modal.onDidDismiss().then(res =>{
if(res['data']=='edit'){
modal.onDidDismiss().then(res => {
if(res['data']=='edit') {
this.closeDesktopComponent();
this.desktopComponent.showEditActions = true;
} else if (res['data']=='delete') {
setTimeout(()=>{
setTimeout(() => {
this.getActions();
},1000)
}, 1000)
this.closeDesktopComponent()
}
});