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

upgrade highleighting upsale template

bsatarnejada7df2624a80b
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
index 68feead0739..170e4b73991 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
@@ -3,6 +3,8 @@
*ngIf="eeShowBanners"
[linkMessage]="text.upsaleCheckOutLink"
[textMessage]="text.upsaleAttributeHighlighting"
+ [moreInfoText]="text.more_info_text"
+ [moreInfoLink]="text.more_info_link"
opReferrer="wp-attribute-highlighting#attribute-highlighting">
</op-enterprise-banner>
<form>
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
index 49b5e23f747..14887e5505a 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
@@ -1,4 +1,9 @@
-import { Component, Injector, ViewChild } from '@angular/core';
+import {
+ ChangeDetectionStrategy,
+ Component,
+ Injector,
+ ViewChild,
+} from '@angular/core';
import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
import { WorkPackageViewHighlightingService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service';
import { I18nService } from 'core-app/core/i18n/i18n.service';
@@ -11,6 +16,7 @@ import { States } from 'core-app/core/states/states.service';
@Component({
templateUrl: './highlighting-tab.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush,
})
export class WpTableConfigurationHighlightingTabComponent implements TabComponent {
// Display mode
@@ -46,6 +52,8 @@ export class WpTableConfigurationHighlightingTabComponent implements TabComponen
},
upsaleAttributeHighlighting: this.I18n.t('js.work_packages.table_configuration.upsale.attribute_highlighting'),
upsaleCheckOutLink: this.I18n.t('js.work_packages.table_configuration.upsale.check_out_link'),
+ more_info_text: this.I18n.t('js.filter.more_info'),
+ more_info_link: 'https://www.openproject.org/enterprise-edition/',
};
constructor(readonly injector:Injector,
@@ -103,7 +111,7 @@ export class WpTableConfigurationHighlightingTabComponent implements TabComponen
public get availableHighlightedAttributes():HalResource[] {
const { schema } = this.querySpace.queryForm.value!;
- return schema.highlightedAttributes.allowedValues;
+ return schema.highlightedAttributes.allowedValues as HalResource[];
}
public onOpen(component:any) {