Modified the paths

This commit is contained in:
Yasa-Nataliya
2023-02-10 12:00:54 +00:00
committed by Sheena Malhotra
parent a00ebef5cc
commit b4a7eb72df
11 changed files with 55 additions and 23 deletions

View File

@@ -29,8 +29,7 @@ import { Store } from '@ngrx/store';
import { AppStore, getSideNavState } from '@alfresco/aca-shared/store';
import { Subject } from 'rxjs';
import { takeUntil, distinctUntilChanged, debounceTime } from 'rxjs/operators';
import { AppExtensionService } from '@alfresco/aca-shared';
import { ContentServiceExtensionService } from '../../services/content-service-extension.service';
import { AppExtensionService, AppService } from '@alfresco/aca-shared';
@Component({
selector: 'app-sidenav',
@@ -47,7 +46,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
groups: Array<NavBarGroupRef> = [];
private onDestroy$ = new Subject<boolean>();
constructor(private store: Store<AppStore>, private extensions: AppExtensionService, private contentServices: ContentServiceExtensionService) {}
constructor(private store: Store<AppStore>, private extensions: AppExtensionService, private appServices: AppService) {}
ngOnInit() {
this.store
@@ -56,7 +55,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
.subscribe(() => {
this.groups = this.extensions.getApplicationNavigation(this.extensions.navbar);
});
this.contentServices.cast.subscribe((data) => (this.hideSidenav = data));
this.appServices.cast.subscribe((data) => (this.hideSidenav = data));
}
trackByGroupId(_: number, obj: NavBarGroupRef): string {
@@ -69,7 +68,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
toggleClick() {
this.hideSidenav = !this.hideSidenav;
this.contentServices.push(this.hideSidenav);
this.appServices.getSidenavValue(this.hideSidenav);
}
ngOnDestroy() {

View File

@@ -11,7 +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';
import { AppService } from '@alfresco/aca-shared';
@Component({
selector: 'app-view-profile',
@@ -36,7 +36,7 @@ export class ViewProfileComponent implements OnInit {
contactSectionButtonsToggle = true;
hideSidenav: boolean;
constructor(private router: Router, apiService: AlfrescoApiService, private contentServices: ContentServiceExtensionService) {
constructor(private router: Router, apiService: AlfrescoApiService, private appService: AppService) {
this.peopleApi = new PeopleApi(apiService.getInstance());
}
@@ -51,7 +51,7 @@ export class ViewProfileComponent implements OnInit {
.catch((error) => {
throwError(error);
});
this.contentServices.cast.subscribe((data) => (this.hideSidenav = data));
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
}
populateForm(userInfo: Person) {