mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
Added expand and collapse functionality
This commit is contained in:
committed by
Sheena Malhotra
parent
9734d1606a
commit
a00ebef5cc
@@ -11,6 +11,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { Router } from '@angular/router';
|
||||
import { throwError } from 'rxjs';
|
||||
import { ContentServiceExtensionService } from '../../services/content-service-extension.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-view-profile',
|
||||
@@ -33,8 +34,9 @@ export class ViewProfileComponent implements OnInit {
|
||||
|
||||
contactSectionDropdown = false;
|
||||
contactSectionButtonsToggle = true;
|
||||
hideSidenav: boolean;
|
||||
|
||||
constructor(private router: Router, apiService: AlfrescoApiService) {
|
||||
constructor(private router: Router, apiService: AlfrescoApiService, private contentServices: ContentServiceExtensionService) {
|
||||
this.peopleApi = new PeopleApi(apiService.getInstance());
|
||||
}
|
||||
|
||||
@@ -49,6 +51,7 @@ export class ViewProfileComponent implements OnInit {
|
||||
.catch((error) => {
|
||||
throwError(error);
|
||||
});
|
||||
this.contentServices.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
}
|
||||
|
||||
populateForm(userInfo: Person) {
|
||||
|
Reference in New Issue
Block a user