proper toggle of the side menu

This commit is contained in:
Denys Vuika
2023-02-11 13:43:28 -05:00
committed by Sheena Malhotra
parent 475c4f401a
commit b915f3e750
15 changed files with 75 additions and 94 deletions

View File

@@ -11,7 +11,6 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { throwError } from 'rxjs';
import { AppService } from '@alfresco/aca-shared';
@Component({
selector: 'app-view-profile',
@@ -36,7 +35,7 @@ export class ViewProfileComponent implements OnInit {
contactSectionButtonsToggle = true;
hideSidenav: boolean;
constructor(private router: Router, apiService: AlfrescoApiService, private appService: AppService) {
constructor(private router: Router, apiService: AlfrescoApiService) {
this.peopleApi = new PeopleApi(apiService.getInstance());
}
@@ -51,7 +50,6 @@ export class ViewProfileComponent implements OnInit {
.catch((error) => {
throwError(error);
});
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
}
populateForm(userInfo: Person) {