mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Add open model in agenda
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li *ngFor="let searchDocument of showSearchDocuments" class="d-flex">
|
||||
<li *ngFor="let searchDocument of showSearchDocuments" (click)="viewEventDetail(searchDocument.Id)" class="d-flex">
|
||||
<div class="icon">
|
||||
<ion-icon *ngIf="itemIcons() == '/home/gabinete-digital' "
|
||||
src="assets/images/icons-search-document.svg"></ion-icon>
|
||||
|
||||
@@ -10,6 +10,9 @@ import { SenderPage } from 'src/app/pages/search/sender/sender.page';
|
||||
import { OrganicEntityPage } from 'src/app/pages/search/organic-entity/organic-entity.page';
|
||||
import WordCloud from 'src/plugin/wordcloud2.js'
|
||||
import { TopSearch } from 'src/app/models/top-search';
|
||||
import { EventListPage } from '../gabinete-digital/event-list/event-list.page';
|
||||
import { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
|
||||
|
||||
|
||||
import { NgModel } from '@angular/forms';
|
||||
@Component({
|
||||
@@ -53,7 +56,8 @@ export class SearchPage implements OnInit {
|
||||
list = []
|
||||
|
||||
constructor(private modalController: ModalController,
|
||||
private search: SearchService) {
|
||||
private search: SearchService,
|
||||
private modalCtrl: ModalController,) {
|
||||
this.ordinance = "recent";
|
||||
}
|
||||
|
||||
@@ -358,4 +362,20 @@ 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)=>{});
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user