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 issues for team planner module
Henriette Dargeec87ce56f1e3
diff --git a/frontend/src/app/core/config/configuration.service.ts b/frontend/src/app/core/config/configuration.service.tsindex d076dc1d8e3..698bf748b09 100644--- a/frontend/src/app/core/config/configuration.service.ts+++ b/frontend/src/app/core/config/configuration.service.ts@@ -101,7 +101,7 @@ export class ConfigurationService {return !!this.systemPreference('startOfWeek');}- public startOfWeek() {+ public startOfWeek():number {if (this.startOfWeekPresent()) {return this.systemPreference('startOfWeek');}diff --git a/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts b/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.tsindex 43feae50f25..b47bd92e26e 100644--- a/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts@@ -31,7 +31,7 @@ export class TeamPlannerPageComponent extends UntilDestroyedMixin {};/** Go back using back-button */- backButtonCallback:() => void = this.backButtonFn.bind(this);+ backButtonCallback:() => void;/** Current query title to render */selectedTitle = this.text.title;@@ -92,9 +92,4 @@ export class TeamPlannerPageComponent extends UntilDestroyedMixin {// eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-varschangeChangesFromTitle(val:string):void {}-- private backButtonFn():void {- // Default fallback- window.history.back();- }}diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.tsindex 82d22098ce6..932f9c106cc 100644--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts@@ -19,7 +19,7 @@ export class TeamPlannerComponent {locale: this.I18n.locale,fixedWeekCount: false,firstDay: this.configuration.startOfWeek(),- events: this.calendarEventsFunction.bind(this),+ events: this.calendarEventsFunction.bind(this) as unknown,toolbar: this.buildHeader(),plugins: [dayGridPlugin],initialView: 'dayGridMonth',@@ -32,8 +32,7 @@ export class TeamPlannerComponent {) {}public calendarEventsFunction(fetchInfo:{ start:Date, end:Date, timeZone:string },- successCallback:(events:EventInput[]) => void,- failureCallback:(error:any) => void):void|PromiseLike<EventInput[]> {+ successCallback:(events:EventInput[]) => void):void|PromiseLike<EventInput[]> {successCallback([{title: 'Important todo',start: '2021-11-10',