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

use enterprise banner component instead of enterprise-banner-bootstrap component

bsatarnejad11d1cc48a5d2
diff --git a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
index 68a559c5f78..6a30f336f9d 100644
--- a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
+++ b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
@@ -1,9 +1,12 @@
<% unless EnterpriseToken.allows_to?(ee_feature) %>
<span class="form--field -indented">
- <enterprise-banner-bootstrap
- text-message="<%= explanation %>"
- more-info-text="<%= t('js.work_packages.table_configuration.upsale.more-info-text') %>"
- more-info-link="https://www.openproject.org/docs/user-guide/work-packages/work-package-table-configuration/#attribute-highlighting-premium-feature">
- </enterprise-banner-bootstrap>
+ <%=
+ angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ moreInfoText: t('js.work_packages.table_configuration.upsale.more-info-text'),
+ textMessage: explanation,
+ moreInfoLink: 'https://www.openproject.org/docs/user-guide/work-packages/work-package-table-configuration/#attribute-highlighting-premium-feature',
+ }
+ %>
</span>
<% end %>
diff --git a/app/views/projects/filters/_form.html.erb b/app/views/projects/filters/_form.html.erb
index 92210700ef1..c8f92a80fb2 100644
--- a/app/views/projects/filters/_form.html.erb
+++ b/app/views/projects/filters/_form.html.erb
@@ -84,10 +84,14 @@
</li>
</ul>
<% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list)%>
- <enterprise-banner-bootstrap
- text-message="<%= t('ee.upsale.project_filters.description_html') %>"
- referrer="project-list-filter">
- </enterprise-banner-bootstrap>
+ <%=
+ angular_component_tag 'op-enterprise-banner',
+ inputs: {
+ moreInfoText: t('text_custom_field_upsale_more_info'),
+ textMessage: t('ee.upsale.project_filters.description_html'),
+ moreInfoLink: 'https://www.openproject.org/docs/system-admin-guide/custom-fields/custom-fields-projects/',
+ }
+ %>
<% end %>
</fieldset>
<% end %>
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 4f6bd4010ae..91442a95d6c 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
@@ -16,9 +16,6 @@ export const enterpriseBannerrBootstrapSelector = 'enterprise-banner-bootstrap';
<op-enterprise-banner
[textMessage]="textMessage"
[linkMessage]="linkMessage"
- [moreInfoText]="moreInfoText"
- [messageIsHtml]="messageIsHtml"
- [moreInfoLink]="moreInfoLink"
[opReferrer]="referrer">
</op-enterprise-banner>
`,
@@ -44,9 +41,6 @@ export class EnterpriseBannerBootstrapComponent implements OnInit {
const $element = jQuery(this.elementRef.nativeElement);
this.textMessage = $element.attr('text-message')!;
- this.moreInfoText = $element.attr('more-info-text')!;
- this.moreInfoLink = $element.attr('more-info-link')!;
- this.messageIsHtml = $element.attr('more-info-link')!;
this.linkMessage = $element.attr('link-message') || this.i18n.t('js.work_packages.table_configuration.upsale.check_out_link');
this.referrer = $element.attr('referrer')!;
}