cleanup user profile

This commit is contained in:
Denys Vuika
2023-02-13 19:03:46 -05:00
committed by Sheena Malhotra
parent cb8504434f
commit 8cbb0b66fd
5 changed files with 167 additions and 226 deletions

View File

@@ -1,138 +1,160 @@
<div class="app-profile-container"> <div class="app-profile-container">
<div class="app-profile-row"> <div class="app-profile-title">
<div class="app-profile-title"> <button mat-icon-button [routerLink]="landingPage">
<button mat-icon-button [routerLink]="landingPage"> <mat-icon>arrow_back</mat-icon>
<mat-icon class="app-profile-icon">arrow_back</mat-icon> </button>
</button> <h1>{{'APP.EDIT_PROFILE.MY_PROFILE' | translate}}</h1>
<h1 class="app-profile">{{'APP.EDIT_PROFILE.MY_PROFILE' | translate}}</h1>
</div>
</div> </div>
<div class="app-profile-general-row" [formGroup]="profileForm">
<div class="app-profile-row" [formGroup]="profileForm">
<div class="app-profile-general"> <div class="app-profile-general">
<div class="app-profile-general-section"> <div class="app-profile-general-section">
<mat-icon class="app-profile-general-icon" (click)="toggleGeneralDropdown()" id="toggle-general-dropdown"> <mat-icon (click)="toggleGeneralDropdown()" id="toggle-general-dropdown">
{{ generalSectionDropdown ? 'expand_more' : 'chevron_right'}}</mat-icon> {{ generalSectionDropdown ? 'expand_more' : 'chevron_right'}}
</mat-icon>
<h4 class="app-general-title">{{'APP.EDIT_PROFILE.GENERAL' | translate}}</h4> <h4 class="app-general-title">{{'APP.EDIT_PROFILE.GENERAL' | translate}}</h4>
</div> </div>
<div class="app-general-edit-btn" *ngIf="generalSectionButtonsToggle">
<button mat-raised-button (click)="toggleGeneralButtons()" id="general-edit-button" <div *ngIf="generalSectionButtonsToggle" class="app-profile-actions">
class="app-general-edit">{{'APP.EDIT_PROFILE.EDIT' | translate}}</button> <button mat-raised-button (click)="toggleGeneralButtons()" id="general-edit-button">
{{'APP.EDIT_PROFILE.EDIT' | translate}}
</button>
</div> </div>
<div class="app-general-edit-btn" *ngIf="!generalSectionButtonsToggle"> <div *ngIf="!generalSectionButtonsToggle" class="app-profile-actions">
<button mat-raised-button class="app-general-cancel-btn" id="general-cancel-button" <button mat-raised-button id="general-cancel-button"(click)="toggleGeneralButtons()">
(click)="toggleGeneralButtons()">{{'APP.EDIT_PROFILE.CANCEL' | translate}}</button> {{'APP.EDIT_PROFILE.CANCEL' | translate}}
<button mat-raised-button class="app-general-save-btn" id="general-save-button" [disabled]="isSaveButtonDisabled()" </button>
(click)="onSaveGeneralData(profileForm)">{{'APP.EDIT_PROFILE.SAVE' | translate}}</button> <button mat-raised-button
[color]="'primary'"
id="general-save-button"
[disabled]="isSaveButtonDisabled()"
(click)="onSaveGeneralData(profileForm)">
{{'APP.EDIT_PROFILE.SAVE' | translate}}
</button>
</div> </div>
</div> </div>
<mat-divider class="app-mat-divider" *ngIf="generalSectionDropdown"></mat-divider>
<div *ngIf="generalSectionDropdown"> <mat-divider *ngIf="generalSectionDropdown"></mat-divider>
<div class="app-general-dropdown">
<div class="app-general-dropdown-details"> <div *ngIf="generalSectionDropdown" class="app-general-dropdown">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.FIRST_NAME' | translate}}</h4> <div class="app-general-dropdown-details">
<p class="app-profile-general-dropdown-details">{{personDetails?.firstName}}</p> <h4>{{'APP.EDIT_PROFILE.FIRST_NAME' | translate}}</h4>
</div> <p>{{personDetails?.firstName}}</p>
<mat-divider class="app-general-dropdown-divider"></mat-divider> </div>
<div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.LAST_NAME' | translate}}</h4> <mat-divider></mat-divider>
<p class="app-profile-general-dropdown-details">{{personDetails?.lastName}}</p>
</div> <div class="app-general-dropdown-details">
<mat-divider class="app-general-dropdown-divider"></mat-divider> <h4>{{'APP.EDIT_PROFILE.LAST_NAME' | translate}}</h4>
<div class="app-general-dropdown-details"> <p>{{personDetails?.lastName}}</p>
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.JOB_TITLE' | translate}}</h4> </div>
<p class="app-profile-general-dropdown-details" *ngIf="generalSectionButtonsToggle">{{personDetails?.jobTitle}}</p>
<input type="text" value="" formControlName="jobTitle" *ngIf="!generalSectionButtonsToggle" <mat-divider></mat-divider>
class="app-profile-general-dropdown-input-details app-selected">
</div> <div class="app-general-dropdown-details">
<mat-divider class="app-general-dropdown-divider"></mat-divider> <h4>{{'APP.EDIT_PROFILE.JOB_TITLE' | translate}}</h4>
<div class="app-general-dropdown-details"> <p *ngIf="generalSectionButtonsToggle">{{personDetails?.jobTitle}}</p>
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.LOCATION' | translate}}</h4> <input *ngIf="!generalSectionButtonsToggle" type="text" formControlName="jobTitle">
<p class="app-profile-general-dropdown-details" *ngIf="generalSectionButtonsToggle">{{personDetails?.location}}</p> </div>
<input type="text" value="" formControlName="location" *ngIf="!generalSectionButtonsToggle"
class="app-profile-general-dropdown-input-details app-selected"> <mat-divider></mat-divider>
</div>
<mat-divider class="app-general-dropdown-divider"></mat-divider> <div class="app-general-dropdown-details">
<div class="app-general-dropdown-details"> <h4>{{'APP.EDIT_PROFILE.LOCATION' | translate}}</h4>
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}</h4> <p *ngIf="generalSectionButtonsToggle">{{personDetails?.location}}</p>
<p class="app-profile-general-dropdown-details" *ngIf="generalSectionButtonsToggle">{{personDetails?.telephone}}</p> <input type="text" formControlName="location" *ngIf="!generalSectionButtonsToggle">
<input type="tel" name="Telephone" value="" formControlName="telephone" *ngIf="!generalSectionButtonsToggle" </div>
class="app-profile-general-dropdown-input-details app-selected">
<mat-error class="app-error-message" *ngIf="profileForm.get('telephone').invalid"> <mat-divider></mat-divider>
{{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }}
</mat-error> <div class="app-general-dropdown-details">
</div> <h4>{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}</h4>
<mat-divider class="app-general-dropdown-divider"></mat-divider> <p *ngIf="generalSectionButtonsToggle">{{personDetails?.telephone}}</p>
<div class="app-general-dropdown-details"> <input type="tel" formControlName="telephone" *ngIf="!generalSectionButtonsToggle">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.MOBILE' | translate}}</h4> <mat-error class="app-error-message" *ngIf="profileForm.get('telephone').invalid">
<p class="app-profile-general-dropdown-details" *ngIf="generalSectionButtonsToggle">{{personDetails?.mobile}}</p>
<input type="tel" value="" formControlName="mobile" *ngIf="!generalSectionButtonsToggle"
class="app-profile-general-dropdown-input-details app-selected">
<mat-error class="app-error-message" *ngIf="profileForm.get('mobile').invalid">
{{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }}
</mat-error> </mat-error>
</div> </div>
<mat-divider></mat-divider>
<div class="app-general-dropdown-details">
<h4>{{'APP.EDIT_PROFILE.MOBILE' | translate}}</h4>
<p *ngIf="generalSectionButtonsToggle">{{personDetails?.mobile}}</p>
<input type="tel" formControlName="mobile" *ngIf="!generalSectionButtonsToggle">
<mat-error class="app-error-message" *ngIf="profileForm.get('mobile').invalid">
{{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }}
</mat-error>
</div> </div>
</div> </div>
</div> </div>
<div class="app-profile-contact-row" [formGroup]="profileForm"> <div class="app-profile-row" [formGroup]="profileForm">
<div class="app-profile-general profile-general-bottom-radius"> <div class="app-profile-general">
<div class="app-profile-general-section"> <div class="app-profile-general-section">
<mat-icon class="app-profile-general-icon" (click)="toggleContactDropdown()" id="toggle-contact-dropdown"> <mat-icon (click)="toggleContactDropdown()" id="toggle-contact-dropdown">
{{ contactSectionDropdown ? 'expand_more' : 'chevron_right'}}</mat-icon> {{ contactSectionDropdown ? 'expand_more' : 'chevron_right'}}</mat-icon>
<h4 class="app-general-title">{{'APP.EDIT_PROFILE.COMPANY_DETAILS' | translate}}</h4> <h4 class="app-general-title">{{'APP.EDIT_PROFILE.COMPANY_DETAILS' | translate}}</h4>
</div> </div>
<div class="app-general-edit-btn" *ngIf="contactSectionButtonsToggle"> <div *ngIf="contactSectionButtonsToggle" class="app-profile-actions">
<button mat-raised-button class="app-general-edit" id="contact-edit-button" <button mat-raised-button id="contact-edit-button" (click)="toggleContactButtons()">
(click)="toggleContactButtons()">{{'APP.EDIT_PROFILE.EDIT' | translate}}</button> {{'APP.EDIT_PROFILE.EDIT' | translate}}
</button>
</div> </div>
<div class="app-general-edit-btn" *ngIf="!contactSectionButtonsToggle"> <div *ngIf="!contactSectionButtonsToggle" class="app-profile-actions">
<button mat-raised-button class="app-general-cancel-btn" id="contact-cancel-button" <button mat-raised-button id="contact-cancel-button" (click)="toggleContactButtons()">
(click)="toggleContactButtons()">{{'APP.EDIT_PROFILE.CANCEL' | translate}}</button> {{'APP.EDIT_PROFILE.CANCEL' | translate}}
<button mat-raised-button class="app-general-save-btn" id="contact-save-button" [disabled]="isSaveButtonDisabled()" </button>
(click)="onSaveCompanyData(profileForm)">{{'APP.EDIT_PROFILE.SAVE' | translate}}</button> <button mat-raised-button [color]="'primary'" id="contact-save-button" [disabled]="isSaveButtonDisabled()" (click)="onSaveCompanyData(profileForm)">
{{'APP.EDIT_PROFILE.SAVE' | translate}}
</button>
</div> </div>
</div> </div>
<mat-divider class="app-mat-divider" *ngIf="contactSectionDropdown"></mat-divider>
<mat-divider *ngIf="contactSectionDropdown"></mat-divider>
<div *ngIf="contactSectionDropdown"> <div *ngIf="contactSectionDropdown">
<div class="app-general-dropdown"> <div class="app-general-dropdown">
<div class="app-general-dropdown-details"> <div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.NAME' | translate}}</h4> <h4>{{'APP.EDIT_PROFILE.NAME' | translate}}</h4>
<p class="app-profile-general-dropdown-details" *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.organization}}</p> <p *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.organization}}</p>
<input type="text" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyName" <input type="text" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyName">
class="app-profile-general-dropdown-input-details app-selected">
</div> </div>
<mat-divider class="app-general-dropdown-divider"></mat-divider>
<mat-divider></mat-divider>
<div class="app-general-dropdown-details"> <div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.ADDRESS' | translate}}</h4> <h4>{{'APP.EDIT_PROFILE.ADDRESS' | translate}}</h4>
<p class="app-profile-general-dropdown-details" *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.address1}}</p> <p *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.address1}}</p>
<input type="text" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyAddress" <input type="text" *ngIf="!contactSectionButtonsToggle" formControlName="companyAddress">
class="app-profile-general-dropdown-input-details app-selected">
</div> </div>
<mat-divider class="app-general-dropdown-divider"></mat-divider>
<mat-divider></mat-divider>
<div class="app-general-dropdown-details"> <div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.POSTCODE' | translate}}</h4> <h4>{{'APP.EDIT_PROFILE.POSTCODE' | translate}}</h4>
<p class="app-profile-general-dropdown-details" *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.postcode}}</p> <p *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.postcode}}</p>
<input type="text" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyPostCode" <input type="text" *ngIf="!contactSectionButtonsToggle" formControlName="companyPostCode">
class="app-profile-general-dropdown-input-details app-selected">
</div> </div>
<mat-divider class="app-general-dropdown-divider"></mat-divider>
<mat-divider></mat-divider>
<div class="app-general-dropdown-details"> <div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}</h4> <h4>{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}</h4>
<p class="app-profile-general-dropdown-details" *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.telephone}}</p> <p *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.telephone}}</p>
<input type="tel" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyTelephone" <input type="tel" *ngIf="!contactSectionButtonsToggle" formControlName="companyTelephone">
class="app-profile-general-dropdown-input-details app-selected">
<mat-error class="app-error-message" *ngIf="profileForm.get('companyTelephone').invalid"> <mat-error class="app-error-message" *ngIf="profileForm.get('companyTelephone').invalid">
{{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }}
</mat-error> </mat-error>
</div> </div>
<mat-divider class="app-general-dropdown-divider"></mat-divider>
<mat-divider></mat-divider>
<div class="app-general-dropdown-details"> <div class="app-general-dropdown-details">
<h4 class="app-profile-general-dropdown-heading">{{'APP.EDIT_PROFILE.EMAIL' | translate}}</h4> <h4>{{'APP.EDIT_PROFILE.EMAIL' | translate}}</h4>
<p class="app-profile-general-dropdown-details" *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.email}}</p> <p *ngIf="contactSectionButtonsToggle">{{personDetails?.company?.email}}</p>
<input type="text" value="" *ngIf="!contactSectionButtonsToggle" formControlName="companyEmail" <input type="text" *ngIf="!contactSectionButtonsToggle" formControlName="companyEmail">
class="app-profile-general-dropdown-input-details app-selected">
<mat-error class="app-error-message" *ngIf="profileForm.get('companyEmail').invalid"> <mat-error class="app-error-message" *ngIf="profileForm.get('companyEmail').invalid">
{{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }} {{ 'APP.EDIT_PROFILE.INVALID_INPUT' | translate }}
</mat-error> </mat-error>

View File

@@ -1,6 +1,15 @@
app-view-profile { .app-view-profile {
letter-spacing: .5px; letter-spacing: .5px;
.app-profile-actions {
display: flex;
button {
margin: 1rem;
margin-left: 0;
}
}
.app-profile-container { .app-profile-container {
overflow: scroll; overflow: scroll;
height: 100%; height: 100%;
@@ -21,47 +30,27 @@ app-view-profile {
align-items: center; align-items: center;
height: 32px; height: 32px;
padding: 0 24px; padding: 0 24px;
width: 100%;
height: 32px;
padding: 32px 0;
border-bottom: 1px solid var(--theme-header-border-color);
} }
.app-profile { .app-profile-row {
cursor: pointer;
margin-top: 1rem;
}
.app-profile-general-row {
margin: 2rem 0 0 2rem; margin: 2rem 0 0 2rem;
width: 70%; width: 70%;
border: 1px solid var(--theme-grey-background-color); border: 1px solid var(--theme-grey-background-color);
border-radius: 1rem; border-radius: 1rem;
} }
.app-profile-icon {
margin-right: 1rem;
cursor: pointer;
}
.app-profile-general-icon {
cursor: pointer;
}
.app-profile-text {
letter-spacing: .5px;
}
.app-profile-general { .app-profile-general {
display: flex; display: flex;
padding-left: 1rem; padding-left: 1rem;
} }
.app-profile-general-bottom-radius {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.app-profile-general-section { .app-profile-general-section {
display: flex; display: flex;
width: 60%; width: 100%;
padding-top: 1rem; padding-top: 1rem;
cursor: pointer; cursor: pointer;
} }
@@ -128,63 +117,33 @@ app-view-profile {
.app-general-dropdown-details { .app-general-dropdown-details {
display: flex; display: flex;
}
.app-profile-general-dropdown-heading { h4 {
color: var(--theme-heading-color); color: var(--theme-heading-color);
width: 20%; width: 20%;
font-weight: 400; font-weight: 400;
letter-spacing: .5px; letter-spacing: .5px;
} }
.app-profile-general-dropdown-details { p {
margin-top: 1.3rem; margin-top: 1.3rem;
letter-spacing: .5px; letter-spacing: .5px;
} }
.app-profile-general-dropdown-input-details { input {
width: 24%; width: 24%;
height: 25px; height: 25px;
border: none; border: none;
margin-top: 1.3rem; margin-top: 1.3rem;
background-color: var(--theme-dropdown-color); background-color: var(--theme-dropdown-color);
}
.app-profile-login-row { &:focus {
margin: 2rem 0 0 2rem; border: 2px solid var(--theme-blue-button-color) !important;
width: 70%; border-radius: 6px;
border: 1px solid var(--theme-grey-background-color); outline: none !important;
border-radius: 1rem; box-shadow: 0 0 2px (--theme-blue-button-color);
} }
}
.app-profile-login {
display: flex;
padding-left: 1rem;
}
.app-profile-login-dropdown-details {
width: 24%;
height: 25px;
border: none;
margin-top: 1.3rem;
background-color: var(--theme-dropdown-color);
}
.app-profile-login-dropdown-heading-forgot {
margin-top: 1.3rem;
color: var(--theme-heading-color);
margin-left: 16rem;
}
.app-profile-company-row {
margin-top: 2rem;
}
.app-profile-contact-row {
margin: 2rem 0 5rem 2rem;
width: 70%;
border: 1px solid var(--theme-grey-background-color);
border-radius: 1rem;
} }
.app-error-message { .app-error-message {

View File

@@ -33,7 +33,6 @@ describe('ViewProfileComponent', () => {
}); });
it('should company dropdown remains close', async () => { it('should company dropdown remains close', async () => {
expect(component.loginSectionDropdown).toBe(false);
expect(component.contactSectionDropdown).toBe(false); expect(component.contactSectionDropdown).toBe(false);
}); });

View File

@@ -15,7 +15,8 @@ import { throwError } from 'rxjs';
selector: 'app-view-profile', selector: 'app-view-profile',
templateUrl: './view-profile.component.html', templateUrl: './view-profile.component.html',
styleUrls: ['./view-profile.component.scss'], styleUrls: ['./view-profile.component.scss'],
encapsulation: ViewEncapsulation.None encapsulation: ViewEncapsulation.None,
host: { class: 'app-view-profile' }
}) })
export class ViewProfileComponent implements OnInit { export class ViewProfileComponent implements OnInit {
private _peopleApi: PeopleApi; private _peopleApi: PeopleApi;
@@ -30,13 +31,8 @@ export class ViewProfileComponent implements OnInit {
generalSectionDropdown = true; generalSectionDropdown = true;
generalSectionButtonsToggle = true; generalSectionButtonsToggle = true;
loginSectionDropdown = false;
loginSectionButtonsToggle = true;
passwordSectionDropdown = false;
contactSectionDropdown = false; contactSectionDropdown = false;
contactSectionButtonsToggle = true; contactSectionButtonsToggle = true;
hideSidenav: boolean;
landingPage: string; landingPage: string;
@@ -45,7 +41,6 @@ export class ViewProfileComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.populateForm(this.personDetails);
this.peopleApi this.peopleApi
.getPerson('-me-') .getPerson('-me-')
.then((userInfo) => { .then((userInfo) => {
@@ -76,18 +71,12 @@ export class ViewProfileComponent implements OnInit {
toggleGeneralDropdown() { toggleGeneralDropdown() {
this.generalSectionDropdown = !this.generalSectionDropdown; this.generalSectionDropdown = !this.generalSectionDropdown;
this.generalSectionButtonsToggle = true;
if (!this.generalSectionDropdown) {
this.generalSectionButtonsToggle = true;
}
} }
toggleGeneralButtons() { toggleGeneralButtons() {
this.generalSectionButtonsToggle = !this.generalSectionButtonsToggle; this.generalSectionButtonsToggle = !this.generalSectionButtonsToggle;
this.generalSectionDropdown = true;
if (!this.generalSectionButtonsToggle) {
this.generalSectionDropdown = true;
}
} }
onSaveGeneralData(event) { onSaveGeneralData(event) {
@@ -95,48 +84,19 @@ export class ViewProfileComponent implements OnInit {
this.updatePersonDetails(event); this.updatePersonDetails(event);
} }
onSaveLoginData() {
this.passwordSectionDropdown = !this.passwordSectionDropdown;
this.loginSectionButtonsToggle = !this.loginSectionButtonsToggle;
}
onSaveCompanyData(event) { onSaveCompanyData(event) {
this.contactSectionButtonsToggle = !this.contactSectionButtonsToggle; this.contactSectionButtonsToggle = !this.contactSectionButtonsToggle;
this.updatePersonDetails(event); this.updatePersonDetails(event);
} }
toggleLoginDropdown() {
this.loginSectionDropdown = !this.loginSectionDropdown;
if (!this.loginSectionDropdown) {
this.loginSectionButtonsToggle = true;
}
}
toggleLoginButtons() {
this.loginSectionButtonsToggle = !this.loginSectionButtonsToggle;
this.passwordSectionDropdown = !this.passwordSectionDropdown;
if (!this.loginSectionButtonsToggle) {
this.loginSectionDropdown = true;
this.passwordSectionDropdown = true;
}
}
toggleContactDropdown() { toggleContactDropdown() {
this.contactSectionDropdown = !this.contactSectionDropdown; this.contactSectionDropdown = !this.contactSectionDropdown;
this.contactSectionButtonsToggle = true;
if (!this.contactSectionDropdown) {
this.contactSectionButtonsToggle = true;
}
} }
toggleContactButtons() { toggleContactButtons() {
this.contactSectionButtonsToggle = !this.contactSectionButtonsToggle; this.contactSectionButtonsToggle = !this.contactSectionButtonsToggle;
this.contactSectionDropdown = true;
if (!this.contactSectionButtonsToggle) {
this.contactSectionDropdown = true;
}
} }
updatePersonDetails(event) { updatePersonDetails(event) {

View File

@@ -29,9 +29,10 @@ import { CommonModule } from '@angular/common';
import { CoreModule } from '@alfresco/adf-core'; import { CoreModule } from '@alfresco/adf-core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatDividerModule } from '@angular/material/divider'; import { MatDividerModule } from '@angular/material/divider';
import { MatButtonModule } from '@angular/material/button';
@NgModule({ @NgModule({
imports: [CommonModule, RouterModule, CoreModule.forChild(), MatDividerModule], imports: [CommonModule, RouterModule, CoreModule.forChild(), MatDividerModule, MatButtonModule],
declarations: [ViewProfileComponent] declarations: [ViewProfileComponent]
}) })
export class ViewProfileModule {} export class ViewProfileModule {}