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

change no-result and enterprise-banner-bootstrap components to be used in rails

bsatarnejad7a47d04029ff
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
index 1137efec1ef..9cae9db82a8 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
@@ -1,4 +1,9 @@
-import { ChangeDetectionStrategy, Component, ElementRef, OnInit } from '@angular/core';
+import {
+ ChangeDetectionStrategy,
+ Component,
+ ElementRef,
+ OnInit,
+} from '@angular/core';
import { I18nService } from 'core-app/core/i18n/i18n.service';
export const enterpriseBannerrBootstrapSelector = 'enterprise-banner-bootstrap';
@@ -26,7 +31,7 @@ export class EnterpriseBannerBootstrapComponent implements OnInit {
protected i18n:I18nService) {
}
- ngOnInit() {
+ ngOnInit():void {
const $element = jQuery(this.elementRef.nativeElement);
this.textMessage = $element.attr('text-message')!;
diff --git a/frontend/src/app/shared/components/no-results/no-results.component.ts b/frontend/src/app/shared/components/no-results/no-results.component.ts
index 4bb78634bf5..864d645d2a4 100644
--- a/frontend/src/app/shared/components/no-results/no-results.component.ts
+++ b/frontend/src/app/shared/components/no-results/no-results.component.ts
@@ -26,7 +26,13 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-import { Component, ElementRef, HostBinding, Input } from '@angular/core';
+import {
+ ChangeDetectionStrategy,
+ Component,
+ ElementRef,
+ HostBinding,
+ Input,
+} from '@angular/core';
import { DatasetInputs } from '../dataset-inputs.decorator';
export const noResultsSelector = 'op-no-results';
@@ -35,6 +41,7 @@ export const noResultsSelector = 'op-no-results';
@Component({
templateUrl: './no-results.component.html',
selector: noResultsSelector,
+ changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NoResultsComponent {