mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fixe open event detail in search
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li *ngFor="let searchDocument of showSearchDocuments" (click)="viewEventDetail(searchDocument.Id)" class="d-flex">
|
||||
<li *ngFor="let searchDocument of showSearchDocuments" (click)="viewDetail(searchDocument.Id)" class="d-flex">
|
||||
<div class="icon">
|
||||
<ion-icon *ngIf="itemIcons() == '/home/gabinete-digital' "
|
||||
src="assets/images/icons-search-document.svg"></ion-icon>
|
||||
|
||||
@@ -362,20 +362,21 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
async viewEventDetail(eventId:any) {
|
||||
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: ViewEventPage,
|
||||
componentProps:{
|
||||
eventId: eventId
|
||||
},
|
||||
cssClass: 'modal',
|
||||
backdropDismiss: false
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res)=>{});
|
||||
async viewDetail(eventId:any) {
|
||||
|
||||
if(window.location.pathname == '/home/agenda'){
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: ViewEventPage,
|
||||
componentProps:{
|
||||
eventId: eventId
|
||||
},
|
||||
cssClass: 'modal',
|
||||
backdropDismiss: false
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then((res)=>{});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user