refacto page mon profile
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import { Component, computed, inject, OnInit, signal } from '@angular/core';
|
||||
import { ActivatedRoute, RouterLink, RouterOutlet } from '@angular/router';
|
||||
import { ActivatedRoute, RouterOutlet } from '@angular/router';
|
||||
import { User } from '@app/shared/models/user';
|
||||
import { Location, NgClass } from '@angular/common';
|
||||
import { Location, UpperCasePipe } from '@angular/common';
|
||||
import { UntilDestroy } from '@ngneat/until-destroy';
|
||||
import { environment } from '@env/environment';
|
||||
import { ChipsComponent } from '@app/shared/components/chips/chips.component';
|
||||
import { ReseauxComponent } from '@app/shared/components/reseaux/reseaux.component';
|
||||
import { UpdateUserComponent } from '@app/shared/features/update-user/update-user.component';
|
||||
import { MyProfileProjectListComponent } from '@app/shared/components/my-profile-project-list/my-profile-project-list.component';
|
||||
import { MyHomeProfileComponent } from '@app/shared/components/my-home-profile/my-home-profile.component';
|
||||
import { MyProfileUpdateFormComponent } from '@app/shared/components/my-profile-update-form/my-profile-update-form.component';
|
||||
import { PdfViewerComponent } from '@app/shared/features/pdf-viewer/pdf-viewer.component';
|
||||
import { ProfileFacade } from '@app/ui/profiles/profile.facade';
|
||||
@@ -17,16 +16,14 @@ import { ProfileFacade } from '@app/ui/profiles/profile.facade';
|
||||
selector: 'app-my-profile',
|
||||
standalone: true,
|
||||
imports: [
|
||||
RouterLink,
|
||||
ChipsComponent,
|
||||
ReseauxComponent,
|
||||
UpdateUserComponent,
|
||||
MyProfileProjectListComponent,
|
||||
RouterOutlet,
|
||||
MyHomeProfileComponent,
|
||||
MyProfileUpdateFormComponent,
|
||||
NgClass,
|
||||
PdfViewerComponent,
|
||||
UpperCasePipe,
|
||||
],
|
||||
templateUrl: './my-profile.component.html',
|
||||
styleUrl: './my-profile.component.scss',
|
||||
@@ -48,13 +45,6 @@ export class MyProfileComponent implements OnInit {
|
||||
return {} as User;
|
||||
});
|
||||
|
||||
protected isEditMode = signal<boolean>(false);
|
||||
|
||||
|
||||
onCancelEditMode($event: boolean) {
|
||||
this.isEditMode.set(!$event);
|
||||
}
|
||||
|
||||
private readonly profileFacade = new ProfileFacade();
|
||||
protected profile = this.profileFacade.profile;
|
||||
protected readonly loading = this.profileFacade.loading;
|
||||
|
||||
Reference in New Issue
Block a user