add edit event modal for desktop

This commit is contained in:
tiago.kayaya
2021-04-01 15:06:05 +01:00
parent eb3b08dabb
commit 1d6fee7c5b
7 changed files with 228 additions and 258 deletions
@@ -103,8 +103,13 @@ export class ViewEventPage implements OnInit {
}
async editEvent() {
/* this.close(); */
console.log(this.profile);
let classs;
if( window.innerWidth <= 800){
classs = 'modal'
} else {
classs = 'modal modal-desktop showAsideOptions'
}
const modal = await this.modalController.create({
component: EditEventPage,
@@ -112,8 +117,7 @@ export class ViewEventPage implements OnInit {
event: this.loadedEvent,
profile: this.profile,
},
cssClass: 'modal',
backdropDismiss: false
cssClass: classs,
});
await modal.present();
modal.onDidDismiss().then((res) => {
@@ -128,6 +132,8 @@ export class ViewEventPage implements OnInit {
}
});
}
viewDocument(){
const url: string = this.loadedAttachments.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");