2020-12-10 11:22:06 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2021-01-07 10:54:11 +01:00
|
|
|
import { ModalController } from '@ionic/angular';
|
|
|
|
|
import { SearchPage } from 'src/app/pages/search/search.page';
|
2020-12-10 11:22:06 +01:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-header',
|
|
|
|
|
templateUrl: './header.page.html',
|
|
|
|
|
styleUrls: ['./header.page.scss'],
|
|
|
|
|
})
|
|
|
|
|
export class HeaderPage implements OnInit {
|
|
|
|
|
|
2021-01-07 10:54:11 +01:00
|
|
|
constructor(private modalController: ModalController) { }
|
2020-12-10 11:22:06 +01:00
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-07 10:54:11 +01:00
|
|
|
async openSearch() {
|
|
|
|
|
const modal = await this.modalController.create({
|
|
|
|
|
component: SearchPage,
|
2021-01-19 09:26:33 +01:00
|
|
|
cssClass: 'group-messages',
|
2021-01-07 10:54:11 +01:00
|
|
|
componentProps: {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return await modal.present();
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-07 10:57:42 +01:00
|
|
|
|
|
|
|
|
|
2020-12-10 11:22:06 +01:00
|
|
|
}
|