OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix eslint errors outside of specs
Benjamin Bädorf2e16c079b6f2
diff --git a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.tsindex db70a2b689e..9dd1f44eb09 100644--- a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts+++ b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts@@ -4,7 +4,12 @@ import { InAppNotificationsStore } from 'core-app/features/in-app-notifications/import { InAppNotificationsService } from 'core-app/features/in-app-notifications/store/in-app-notifications.service';import { OpModalService } from 'core-app/shared/components/modal/modal.service';import { timer, combineLatest } from 'rxjs';-import { filter, switchMap, tap, map } from 'rxjs/operators';+import {+ filter,+ switchMap,+ tap,+ map,+} from 'rxjs/operators';import { ActiveWindowService } from 'core-app/core/active-window/active-window.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';@@ -23,12 +28,11 @@ const POLLING_INTERVAL = 10000;],})export class InAppNotificationBellComponent implements OnInit {- polling$ = timer(10, POLLING_INTERVAL)- .pipe(- filter(() => this.activeWindow.isActive),- tap(() => console.log('sending fetch request from bell')),- switchMap(() => this.inAppService.fetchNotifications()),- );+ polling$ = timer(10, POLLING_INTERVAL).pipe(+ filter(() => this.activeWindow.isActive),+ tap(() => console.log('sending fetch request from bell')),+ switchMap(() => this.inAppService.fetchNotifications()),+ );unreadCount$ = combineLatest([this.inAppQuery.notLoaded$,@@ -43,9 +47,8 @@ export class InAppNotificationBellComponent implements OnInit {readonly pathHelper:PathHelperService,) { }- ngOnInit() {+ ngOnInit():void {this.inAppService.setPageSize(0);- console.log('ngoninit ian bell');}notificationsPath():string {diff --git a/frontend/src/app/features/in-app-notifications/store/in-app-notifications.service.ts b/frontend/src/app/features/in-app-notifications/store/in-app-notifications.service.tsindex e7b1b746802..41b4cc26ab2 100644--- a/frontend/src/app/features/in-app-notifications/store/in-app-notifications.service.ts+++ b/frontend/src/app/features/in-app-notifications/store/in-app-notifications.service.ts@@ -6,6 +6,7 @@ import {tap,catchError,} from 'rxjs/operators';+import { Subscription } from 'rxjs';import { applyTransaction, ID, setLoading } from '@datorama/akita';import { ApiV3ListFilter } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';@@ -80,7 +81,7 @@ export class InAppNotificationsService {this.store.update((state) => ({ ...state, activeFilters: filters }));}- markAllRead() {+ markAllRead():Subscription {return this.query.unread$.pipe(@@ -96,7 +97,7 @@ export class InAppNotificationsService {});}- markAsRead(notifications:InAppNotification[], keep = false) {+ markAsRead(notifications:InAppNotification[], keep = false):Subscription {const ids = notifications.map((n) => n.id);return this@@ -116,7 +117,7 @@ export class InAppNotificationsService {});}- private sideLoadInvolvedWorkPackages(elements:InAppNotification[]) {+ private sideLoadInvolvedWorkPackages(elements:InAppNotification[]):void {const wpIds = elements.map((element) => {const href = element._links.resource?.href;return href && HalResource.matchFromLink(href, 'work_packages');diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.tsindex a8d987dc6b2..f9c11f73034 100644--- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts@@ -47,8 +47,8 @@ export class WorkPackageTabsService {(tab) => ({...tab,counter: tab.count- ? (injector:Injector) => tab.count!(workPackage, injector || this.injector) // eslint-disable-line no-non-null-assertion- : (_:Injector) => from([0]), // eslint-disable-line no-unused-vars+ ? (injector:Injector) => tab.count!(workPackage, injector || this.injector) // eslint-disable-line @typescript-eslint/no-non-null-assertion+ : (_:Injector) => from([0]), // eslint-disable-line @typescript-eslint/no-unused-vars}),);}