mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
|
||||
import { ProfileComponent } from '../headers/header-no-search/profile/profile.page';
|
||||
import { AuthService } from 'src/app/services/auth.service';
|
||||
import { User } from 'src/app/models/user.model';
|
||||
import { ProfilePage } from 'src/app/modals/profile/profile.page';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
@@ -16,7 +17,7 @@ export class HeaderPage implements OnInit {
|
||||
searchSubject: string = '';
|
||||
showSearch=false;
|
||||
loggeduser: User;
|
||||
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private modalController: ModalController,
|
||||
@@ -100,12 +101,12 @@ export class HeaderPage implements OnInit {
|
||||
const leaveAnimation = (baseEl: any) => {
|
||||
return enterAnimation(baseEl).direction('reverse');
|
||||
}
|
||||
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
enterAnimation,
|
||||
leaveAnimation,
|
||||
component: ProfileComponent,
|
||||
component: ProfilePage,
|
||||
cssClass: 'model profile-modal search-submodal',
|
||||
componentProps: {
|
||||
}
|
||||
@@ -133,4 +134,4 @@ export class HeaderPage implements OnInit {
|
||||
async basicSearch(){
|
||||
window['searchTriger']()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user