linting fixes

This commit is contained in:
SheenaMalhotra182
2023-02-11 01:22:23 +05:30
committed by Yasa-Nataliya
parent ac0a6bea48
commit bc39afc978
8 changed files with 7 additions and 11 deletions

View File

@@ -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();

View File

@@ -93,5 +93,4 @@ describe('AppHeaderComponent', () => {
tick(); tick();
expect(component.actions).toEqual(actions); expect(component.actions).toEqual(actions);
})); }));
}); });

View File

@@ -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>

View File

@@ -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 {

View File

@@ -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) {

View File

@@ -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();
} }

View File

@@ -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$))

View File

@@ -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">