changes in profile

This commit is contained in:
tiago.kayaya
2021-07-28 16:27:10 +01:00
parent ba82497d8e
commit 8b3d195403
14 changed files with 619 additions and 228 deletions
@@ -6,6 +6,7 @@ import { ProfileComponent } from './profile/profile.page';
import { Router } from '@angular/router';
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-no-search',
templateUrl: './header-no-search.page.html',
@@ -14,12 +15,12 @@ import { User } from 'src/app/models/user.model';
export class HeaderNoSearchPage implements OnInit {
loggeduser: User;
constructor(private modalController: ModalController,
private menu: MenuController,
private animationController: AnimationController,
private router: Router,
authService: AuthService) {
authService: AuthService) {
this.loggeduser = authService.ValidatedUser;
}
@@ -51,12 +52,12 @@ export class HeaderNoSearchPage 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',
componentProps: {
}