mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
linting fixes
This commit is contained in:
committed by
Yasa-Nataliya
parent
ac0a6bea48
commit
bc39afc978
@@ -17,7 +17,7 @@
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||
import { HeaderActionsComponent } from './header-actions.component'
|
||||
import { HeaderActionsComponent } from './header-actions.component';
|
||||
import { ContentActionType } from '@alfresco/adf-extensions';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { of } from 'rxjs';
|
||||
@@ -28,7 +28,6 @@ import { AppHeaderActionsModule } from './header-actions.module';
|
||||
describe('HeaderActionsComponent', () => {
|
||||
let component: HeaderActionsComponent;
|
||||
let fixture: ComponentFixture<HeaderActionsComponent>;
|
||||
|
||||
let extensionService: AppExtensionService;
|
||||
let getCreateActionsSpy: jasmine.Spy;
|
||||
let getUploadActionsSpy: jasmine.Spy;
|
||||
@@ -115,7 +114,7 @@ describe('HeaderActionsComponent', () => {
|
||||
button.click();
|
||||
}
|
||||
|
||||
it('should render menu items when create menu is opened' , async () => {
|
||||
it('should render menu items when create menu is opened', async () => {
|
||||
spyOn(component, 'isPersonalFilesRoute').and.returnValue(true);
|
||||
await clickCreateMenu();
|
||||
|
||||
|
@@ -93,5 +93,4 @@ describe('AppHeaderComponent', () => {
|
||||
tick();
|
||||
expect(component.actions).toEqual(actions);
|
||||
}));
|
||||
});
|
||||
|
||||
});
|
@@ -2,7 +2,7 @@
|
||||
<ng-container [ngSwitch]="mode">
|
||||
<div class="sidenav-header">
|
||||
<div class="sidenav-header-title">
|
||||
<div class="sidenav-header-title-logo" (click)="toggleClick()">
|
||||
<div class="sidenav-header-title-logo" (click)="toggleClick()" (keypress)="toggleClick()">
|
||||
<mat-icon svgIcon="workspace"
|
||||
title="{{'APP.TOOLTIPS.COLLAPSE_NAVIGATION' | translate}}"></mat-icon>
|
||||
</div>
|
||||
|
@@ -55,7 +55,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
||||
.subscribe(() => {
|
||||
this.groups = this.extensions.getApplicationNavigation(this.extensions.navbar);
|
||||
});
|
||||
this.appServices.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
this.appServices.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
}
|
||||
|
||||
trackByGroupId(_: number, obj: NavBarGroupRef): string {
|
||||
|
@@ -51,7 +51,7 @@ export class ViewProfileComponent implements OnInit {
|
||||
.catch((error) => {
|
||||
throwError(error);
|
||||
});
|
||||
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
}
|
||||
|
||||
populateForm(userInfo: Person) {
|
||||
|
@@ -14,7 +14,6 @@ import { take } from 'rxjs/operators';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ContentServiceExtensionService {
|
||||
|
||||
constructor(private appConfigService: AppConfigService) {
|
||||
this.updateContentServiceAvailability();
|
||||
}
|
||||
|
@@ -76,7 +76,6 @@ export abstract class PageComponent implements OnInit, OnDestroy, OnChanges {
|
||||
protected constructor(protected store: Store<AppStore>, protected extensions: AppExtensionService, protected content: DocumentBasePageService) {}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.extensions
|
||||
.getCreateActions()
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<div class="aca-content-container" [ngClass]="{'aca-page-layout-container' : hideSidenav}">
|
||||
<div class="aca-content-header">
|
||||
<div class="aca-menu-icon" [ngClass]="{'aca-display-menu' : !hideSidenav}" (click)="toggleClick()">
|
||||
<div class="aca-menu-icon" [ngClass]="{'aca-display-menu' : !hideSidenav}" (click)="toggleClick()" (keypress)="toggleClick()">
|
||||
<mat-icon title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}">menu</mat-icon>
|
||||
</div>
|
||||
<ng-content select="aca-page-layout-header">
|
||||
|
Reference in New Issue
Block a user