Files
doneit-web/src/app/shared/header/header.page.ts
T

36 lines
762 B
TypeScript
Raw Normal View History

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-02-01 17:00:01 +01:00
profile: string = 'mdgpr';
constructor(private modalController: ModalController) {
window['header'] = (profile:string) => {
this.profile = profile;
}
}
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-02-12 11:08:03 +01:00
cssClass: 'group-messages modal-desktop',
2021-01-07 10:54:11 +01:00
componentProps: {
}
});
return await modal.present();
}
2020-12-10 11:22:06 +01:00
}