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]: more eslint fixes

Kabiru Mwenja8ec6db92bd96
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 f8472d250c5..6cd3717d7cd 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
@@ -49,6 +49,7 @@ 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;
readonly text = {
@@ -65,7 +66,7 @@ export class StaticAttributeHelpTextComponent {
populateInputsFromDataset(this);
}
- public handleClick(event: Event): void {
+ public handleClick(event: Event):void {
this.opModalService.show(StaticAttributeHelpTextModalComponent, this.injector, { title: this.title, content: this.content });
event.preventDefault();
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 b7f3bf94e42..66b72257d03 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,