From f4c0f792885928c9da98329a8cdab977f8098c41 Mon Sep 17 00:00:00 2001 From: Michael Spalti Date: Thu, 4 Aug 2022 12:10:45 -0700 Subject: [PATCH] Lint errors. --- .../community-page-sub-collection-list.component.ts | 4 ++-- ...themed-community-page-sub-collection-list.component.ts | 8 ++++---- .../community-page-sub-community-list.component.ts | 8 ++++---- .../themed-community-page-sub-community-list.component.ts | 7 ++++--- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts b/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts index e117ab4102..f72405ce13 100644 --- a/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts +++ b/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { BehaviorSubject, combineLatest as observableCombineLatest } from 'rxjs'; @@ -19,7 +19,7 @@ import { switchMap } from 'rxjs/operators'; templateUrl: './community-page-sub-collection-list.component.html', animations:[fadeIn] }) -export class CommunityPageSubCollectionListComponent implements OnInit { +export class CommunityPageSubCollectionListComponent implements OnInit, OnDestroy { @Input() community: Community; /** diff --git a/src/app/community-page/sub-collection-list/themed-community-page-sub-collection-list.component.ts b/src/app/community-page/sub-collection-list/themed-community-page-sub-collection-list.component.ts index a2d3d3a39d..95d9968819 100644 --- a/src/app/community-page/sub-collection-list/themed-community-page-sub-collection-list.component.ts +++ b/src/app/community-page/sub-collection-list/themed-community-page-sub-collection-list.component.ts @@ -9,14 +9,14 @@ import { Community } from '../../core/shared/community.model'; templateUrl: '../../shared/theme-support/themed.component.html', }) export class ThemedCollectionPageSubCollectionListComponent extends ThemedComponent { - protected getComponentName(): string { - return 'CommunityPageSubCollectionListComponent'; - } - @Input() community: Community; @Input() pageSize: number; protected inAndOutputNames: (keyof CommunityPageSubCollectionListComponent & keyof this)[] = ['community', 'pageSize']; + protected getComponentName(): string { + return 'CommunityPageSubCollectionListComponent'; + } + protected importThemedComponent(themeName: string): Promise { return import(`../../../themes/${themeName}/app/community-page/sub-community-list/community-page-sub-collection-list.component`); } diff --git a/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts b/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts index 1ab2af5cf8..5ba89490b9 100644 --- a/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts +++ b/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { BehaviorSubject, combineLatest as observableCombineLatest } from 'rxjs'; @@ -14,7 +14,7 @@ import { switchMap } from 'rxjs/operators'; import { PaginationService } from '../../core/pagination/pagination.service'; @Component({ - selector: ' ', + selector: 'ds-community-page-sub-community-list', styleUrls: ['./community-page-sub-community-list.component.scss'], templateUrl: './community-page-sub-community-list.component.html', animations: [fadeIn] @@ -22,11 +22,11 @@ import { PaginationService } from '../../core/pagination/pagination.service'; /** * Component to render the sub-communities of a Community */ -export class CommunityPageSubCommunityListComponent implements OnInit { +export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy { @Input() community: Community; /** - * Optional page size (defaults to 5) + * Optional page size (defaults to 5). */ @Input() pageSize: number; diff --git a/src/app/community-page/sub-community-list/themed-community-page-sub-community-list.component.ts b/src/app/community-page/sub-community-list/themed-community-page-sub-community-list.component.ts index 407085c292..852c53186e 100644 --- a/src/app/community-page/sub-community-list/themed-community-page-sub-community-list.component.ts +++ b/src/app/community-page/sub-community-list/themed-community-page-sub-community-list.component.ts @@ -9,14 +9,15 @@ import { Community } from '../../core/shared/community.model'; templateUrl: '../../shared/theme-support/themed.component.html', }) export class ThemedCommunityPageSubCommunityListComponent extends ThemedComponent { - protected getComponentName(): string { - return 'CommunityPageSubCommunityListComponent'; - } @Input() community: Community; @Input() pageSize: number; protected inAndOutputNames: (keyof CommunityPageSubCommunityListComponent & keyof this)[] = ['community', 'pageSize']; + protected getComponentName(): string { + return 'CommunityPageSubCommunityListComponent'; + } + protected importThemedComponent(themeName: string): Promise { return import(`../../../themes/${themeName}/app/community-page/sub-community-list/community-page-sub-community-list.component`); }