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 { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
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 { ContentActionType } from '@alfresco/adf-extensions';
|
||||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
@@ -28,7 +28,6 @@ import { AppHeaderActionsModule } from './header-actions.module';
|
|||||||
describe('HeaderActionsComponent', () => {
|
describe('HeaderActionsComponent', () => {
|
||||||
let component: HeaderActionsComponent;
|
let component: HeaderActionsComponent;
|
||||||
let fixture: ComponentFixture<HeaderActionsComponent>;
|
let fixture: ComponentFixture<HeaderActionsComponent>;
|
||||||
|
|
||||||
let extensionService: AppExtensionService;
|
let extensionService: AppExtensionService;
|
||||||
let getCreateActionsSpy: jasmine.Spy;
|
let getCreateActionsSpy: jasmine.Spy;
|
||||||
let getUploadActionsSpy: jasmine.Spy;
|
let getUploadActionsSpy: jasmine.Spy;
|
||||||
@@ -115,7 +114,7 @@ describe('HeaderActionsComponent', () => {
|
|||||||
button.click();
|
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);
|
spyOn(component, 'isPersonalFilesRoute').and.returnValue(true);
|
||||||
await clickCreateMenu();
|
await clickCreateMenu();
|
||||||
|
|
||||||
|
@@ -93,5 +93,4 @@ describe('AppHeaderComponent', () => {
|
|||||||
tick();
|
tick();
|
||||||
expect(component.actions).toEqual(actions);
|
expect(component.actions).toEqual(actions);
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
@@ -2,7 +2,7 @@
|
|||||||
<ng-container [ngSwitch]="mode">
|
<ng-container [ngSwitch]="mode">
|
||||||
<div class="sidenav-header">
|
<div class="sidenav-header">
|
||||||
<div class="sidenav-header-title">
|
<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"
|
<mat-icon svgIcon="workspace"
|
||||||
title="{{'APP.TOOLTIPS.COLLAPSE_NAVIGATION' | translate}}"></mat-icon>
|
title="{{'APP.TOOLTIPS.COLLAPSE_NAVIGATION' | translate}}"></mat-icon>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -55,7 +55,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
|||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.groups = this.extensions.getApplicationNavigation(this.extensions.navbar);
|
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 {
|
trackByGroupId(_: number, obj: NavBarGroupRef): string {
|
||||||
|
@@ -51,7 +51,7 @@ export class ViewProfileComponent implements OnInit {
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
throwError(error);
|
throwError(error);
|
||||||
});
|
});
|
||||||
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
|
this.appService.cast.subscribe((data) => (this.hideSidenav = data));
|
||||||
}
|
}
|
||||||
|
|
||||||
populateForm(userInfo: Person) {
|
populateForm(userInfo: Person) {
|
||||||
|
@@ -14,7 +14,6 @@ import { take } from 'rxjs/operators';
|
|||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class ContentServiceExtensionService {
|
export class ContentServiceExtensionService {
|
||||||
|
|
||||||
constructor(private appConfigService: AppConfigService) {
|
constructor(private appConfigService: AppConfigService) {
|
||||||
this.updateContentServiceAvailability();
|
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) {}
|
protected constructor(protected store: Store<AppStore>, protected extensions: AppExtensionService, protected content: DocumentBasePageService) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.extensions
|
this.extensions
|
||||||
.getCreateActions()
|
.getCreateActions()
|
||||||
.pipe(takeUntil(this.onDestroy$))
|
.pipe(takeUntil(this.onDestroy$))
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<div class="aca-content-container" [ngClass]="{'aca-page-layout-container' : hideSidenav}">
|
<div class="aca-content-container" [ngClass]="{'aca-page-layout-container' : hideSidenav}">
|
||||||
<div class="aca-content-header">
|
<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>
|
<mat-icon title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}">menu</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
<ng-content select="aca-page-layout-header">
|
<ng-content select="aca-page-layout-header">
|
||||||
|
Reference in New Issue
Block a user