Skip to content

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

chore[#47150] Address eslint warnings

Kabiru Mwenjae7f3cbe2ceac
diff --git a/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
index 72698b572a1..8867385b62b 100644
--- a/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
@@ -20,13 +20,13 @@ import { StaticAttributeHelpTextModalComponent } from './static-attribute-help-t
AttributeHelpTextComponent,
AttributeHelpTextModalComponent,
StaticAttributeHelpTextComponent,
- StaticAttributeHelpTextModalComponent
+ StaticAttributeHelpTextModalComponent,
],
providers: [
],
exports: [
AttributeHelpTextComponent,
- StaticAttributeHelpTextComponent
+ StaticAttributeHelpTextComponent,
],
})
export class AttributeHelpTextModule {}
diff --git a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
index 317ea961a14..f8472d250c5 100644
--- a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
@@ -32,7 +32,7 @@ import {
Component,
ElementRef,
Injector,
- Input
+ Input,
} from '@angular/core';
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { populateInputsFromDataset } from 'core-app/shared/components/dataset-inputs';
@@ -48,19 +48,19 @@ export const staticAttributeHelpTextSelector = 'op-static-attribute-help-text';
})
export class StaticAttributeHelpTextComponent {
// Attribute pass the modal title and content
- @Input() public title: string;
- @Input() public content: string;
+ @Input() public title:string;
+ @Input() public content:string;
readonly text = {
open_dialog: this.I18n.t('js.help_texts.show_modal'),
};
constructor(
- readonly elementRef: ElementRef,
- protected opModalService: OpModalService,
- protected cdRef: ChangeDetectorRef,
- protected injector: Injector,
- protected I18n: I18nService,
+ readonly elementRef:ElementRef,
+ protected opModalService:OpModalService,
+ protected cdRef:ChangeDetectorRef,
+ protected injector:Injector,
+ protected I18n:I18nService,
) {
populateInputsFromDataset(this);
}
diff --git a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.modal.ts b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.modal.ts
index 66b72257d03..b7f3bf94e42 100644
--- a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.modal.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.modal.ts
@@ -43,8 +43,8 @@ export class StaticAttributeHelpTextModalComponent extends OpModalComponent impl
close: this.I18n.t('js.button_close'),
};
- public title:string = this.locals.title!;
- public content:string = this.locals.content!;
+ public title:string = this.locals.title || '';
+ public content:string = this.locals.content || '';
constructor(
@Inject(OpModalLocalsToken) public locals:OpModalLocalsMap,