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

View File

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

View File

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

View File

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

View File

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

View File

@@ -14,7 +14,6 @@ import { take } from 'rxjs/operators';
providedIn: 'root'
})
export class ContentServiceExtensionService {
constructor(private appConfigService: AppConfigService) {
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) {}
ngOnInit() {
this.extensions
.getCreateActions()
.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-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">