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 linting errors
Benjamin Bädorf1dc1a6c90b79
diff --git a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.tsindex e9862cc875d..08577fabfb1 100644--- a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts@@ -88,7 +88,7 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo});}- public async openConfigurationModal(onUpdated:() => void) {+ public async openConfigurationModal(onUpdated:() => void):void {await this.querySpace.query.valuesPromise();this.opModalServicediff --git a/frontend/src/app/shared/components/fields/edit/field-types/date-picker-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/date-picker-edit-field.component.tsindex 5a6c5c6f09c..cff71a024c0 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/date-picker-edit-field.component.ts+++ b/frontend/src/app/shared/components/fields/edit/field-types/date-picker-edit-field.component.ts@@ -71,30 +71,28 @@ export abstract class DatePickerEditFieldComponent extends EditFieldComponent impublic showDatePickerModal():void {const component = this.change.schema.isMilestone ? SingleDateModalComponent : MultiDateModalComponent;- this.opModalService- .show<SingleDateModalComponent|MultiDateModalComponent>(- component,- this.injector,- { changeset: this.change, fieldName: this.name },- !this.deviceService.isMobile,- )- .subscribe((modal) => {- this.modal = modal;-- setTimeout(() => {- const modalElement = jQuery(modal.elementRef.nativeElement).find('.op-datepicker-modal');- const field = jQuery(this.elementRef.nativeElement);- modal.reposition(modalElement, field);- });+ this.opModalService.show<SingleDateModalComponent|MultiDateModalComponent>(+ component,+ this.injector,+ { changeset: this.change, fieldName: this.name },+ !this.deviceService.isMobile,+ ).subscribe((modal) => {+ this.modal = modal;- (modal as OpModalComponent)- .closingEvent- .pipe(take(1))- .subscribe(() => {- this.modal = null;- this.onModalClosed();- });+ setTimeout(() => {+ const modalElement = jQuery(modal.elementRef.nativeElement).find('.op-datepicker-modal');+ const field = jQuery(this.elementRef.nativeElement);+ modal.reposition(modalElement, field);});++ (modal as OpModalComponent)+ .closingEvent+ .pipe(take(1))+ .subscribe(() => {+ this.modal = null;+ this.onModalClosed();+ });+ });}protected onModalClosed():void {diff --git a/frontend/src/app/shared/components/time_entries/edit/edit.service.ts b/frontend/src/app/shared/components/time_entries/edit/edit.service.tsindex f0d3f1faf77..6c6b4c59a46 100644--- a/frontend/src/app/shared/components/time_entries/edit/edit.service.ts+++ b/frontend/src/app/shared/components/time_entries/edit/edit.service.ts@@ -31,28 +31,27 @@ export class TimeEntryEditService {return new Promise<{ entry:TimeEntryResource, action:'update'|'destroy' }>((resolve, reject) => {void this.createChangeset(entry)- .then((changeset) => {- this.opModalService.show(- TimeEntryEditModalComponent,- this.injector,- { ...options, changeset },- )- .subscribe((modal) => modal- .closingEvent- .pipe(take(1))- .subscribe(() => {- if (modal.destroyedEntry) {- // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access- void modal.destroyedEntry.delete().then(() => {- resolve({ entry: modal.destroyedEntry, action: 'destroy' });- });- } else if (modal.modifiedEntry) {- resolve({ entry: modal.modifiedEntry, action: 'update' });- } else {- reject();- }- }));- });+ .then((changeset) => this.opModalService.show(+ TimeEntryEditModalComponent,+ this.injector,+ { ...options, changeset },+ )+ .subscribe((modal) => modal+ .closingEvent+ .pipe(take(1))+ .subscribe(() => {+ if (modal.destroyedEntry) {+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access+ void modal.destroyedEntry.delete().then(() => {+ resolve({ entry: modal.destroyedEntry, action: 'destroy' });+ });+ } else if (modal.modifiedEntry) {+ resolve({ entry: modal.modifiedEntry, action: 'update' });+ } else {+ reject();+ }+ }),+ ));});}