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

redirect to enterprise page in EE banner

bsatarnejad480822f0f1ab
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
index f2cd7f72217..fd26a0574a5 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
@@ -38,12 +38,12 @@
{{ text.upgrade }}
</a>
- <button
+ <a
+ [attr.href]="text.more_info_link"
target=”_blank”
- (click)="openTrialModal()"
class="button -alt-highlight">
{{ text.button_trial }}
- </button>
+ </a>
</div>
</div>
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
index 3a4402d413f..de4aadc0b27 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
@@ -8,11 +8,10 @@ import {
} from '@angular/core';
import { BannersService } from 'core-app/core/enterprise/banners.service';
import { I18nService } from 'core-app/core/i18n/i18n.service';
-import { EnterpriseTrialModalComponent } from 'core-app/features/enterprise/enterprise-modal/enterprise-trial.modal';
-import { EnterpriseTrialService } from 'core-app/features/enterprise/enterprise-trial.service';
import { imagePath } from 'core-app/shared/helpers/images/path-helper';
import { DatasetInputs } from 'core-app/shared/components/dataset-inputs.decorator';
import { OpModalService } from '../modal/modal.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
export const enterpriseBannerSelector = 'op-enterprise-banner';
@@ -46,6 +45,7 @@ export class EnterpriseBannerComponent implements OnInit {
you_contribute: this.I18n.t('js.admin.enterprise.upsale.you_contribute'),
button_trial: this.I18n.t('js.admin.enterprise.upsale.button_start_trial'),
upgrade: this.I18n.t('js.admin.enterprise.upsale.button_upgrade'),
+ more_info_link: `${this.pathHelper.appBasePath}/admin/enterprise`,
};
image = {
@@ -56,18 +56,12 @@ export class EnterpriseBannerComponent implements OnInit {
readonly elementRef:ElementRef,
protected I18n:I18nService,
protected bannersService:BannersService,
- readonly eeTrialService:EnterpriseTrialService,
protected opModalService:OpModalService,
readonly injector:Injector,
+ readonly pathHelper:PathHelperService,
) {}
ngOnInit():void {
this.link = this.bannersService.getEnterPriseEditionUrl({ referrer: this.opReferrer });
}
-
- public openTrialModal():void {
- this.eeTrialService.cancelled = true;
- this.eeTrialService.modalOpen = true;
- this.opModalService.show(EnterpriseTrialModalComponent, this.injector);
- }
}