forked from hazza/dspace-angular
ESLint: fix dangling commas
This commit is contained in:
@@ -14,7 +14,7 @@ import { MenuID } from '../../shared/menu/menu-id.model';
|
||||
selector: 'ds-expandable-navbar-section',
|
||||
templateUrl: './expandable-navbar-section.component.html',
|
||||
styleUrls: ['./expandable-navbar-section.component.scss'],
|
||||
animations: [slide]
|
||||
animations: [slide],
|
||||
})
|
||||
@rendersSectionForMenu(MenuID.PUBLIC, true)
|
||||
export class ExpandableNavbarSectionComponent extends NavbarSectionComponent implements OnInit {
|
||||
@@ -26,7 +26,7 @@ export class ExpandableNavbarSectionComponent extends NavbarSectionComponent imp
|
||||
constructor(@Inject('sectionDataProvider') menuSection,
|
||||
protected menuService: MenuService,
|
||||
protected injector: Injector,
|
||||
private windowService: HostWindowService
|
||||
private windowService: HostWindowService,
|
||||
) {
|
||||
super(menuSection, menuService, injector);
|
||||
}
|
||||
@@ -42,7 +42,7 @@ export class ExpandableNavbarSectionComponent extends NavbarSectionComponent imp
|
||||
*/
|
||||
activateSection(event): void {
|
||||
this.windowService.isXsOrSm().pipe(
|
||||
first()
|
||||
first(),
|
||||
).subscribe((isMobile) => {
|
||||
if (!isMobile) {
|
||||
super.activateSection(event);
|
||||
@@ -57,7 +57,7 @@ export class ExpandableNavbarSectionComponent extends NavbarSectionComponent imp
|
||||
*/
|
||||
deactivateSection(event): void {
|
||||
this.windowService.isXsOrSm().pipe(
|
||||
first()
|
||||
first(),
|
||||
).subscribe((isMobile) => {
|
||||
if (!isMobile) {
|
||||
super.deactivateSection(event);
|
||||
@@ -73,7 +73,7 @@ export class ExpandableNavbarSectionComponent extends NavbarSectionComponent imp
|
||||
toggleSection(event): void {
|
||||
event.preventDefault();
|
||||
this.windowService.isXsOrSm().pipe(
|
||||
first()
|
||||
first(),
|
||||
).subscribe((isMobile) => {
|
||||
if (isMobile) {
|
||||
super.toggleSection(event);
|
||||
|
Reference in New Issue
Block a user