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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix some errors
bsatarnejadeb649e5f7c6f
diff --git a/app/controllers/custom_actions_controller.rb b/app/controllers/custom_actions_controller.rbindex 3eace0778b2..3c9a9eeb267 100644--- a/app/controllers/custom_actions_controller.rb+++ b/app/controllers/custom_actions_controller.rb@@ -33,11 +33,11 @@ class CustomActionsController < ApplicationControllerbefore_action :augur_content_security_policybefore_action :require_adminbefore_action :require_enterprise_token-+self._model_object = CustomActionbefore_action :find_model_object, only: %i(edit update destroy)before_action :pad_params, only: %i(create update)-+layout 'admin'def indexdiff --git a/frontend/src/app/features/enterprise/enterprise-base.component.ts b/frontend/src/app/features/enterprise/enterprise-base.component.tsindex 1724d773afb..73f04902834 100644--- a/frontend/src/app/features/enterprise/enterprise-base.component.ts+++ b/frontend/src/app/features/enterprise/enterprise-base.component.ts@@ -66,7 +66,6 @@ export class EnterpriseBaseComponent {}public get noTrialRequested() {-return window.gon.ee_trial_key === undefined;}}diff --git a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.ts b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.tsindex 524023cdd5b..ee078cedaec 100644--- a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.ts+++ b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.ts@@ -46,17 +46,17 @@ export const freeTrialButtonSelector = 'free-trial-button';templateUrl: './free-trial-button.component.html',changeDetection: ChangeDetectionStrategy.OnPush,})-export class FreeTrialButtonComponent {+export class FreeTrialButtonComponent implements OnInit {created = this.timezoneService.formattedDate(new Date().toString());email = '';public text = {button_trial: this.I18n.t('js.admin.enterprise.upsale.button_start_trial'),- confirmation_info: (date:string, email:string) => this.trialRequested ? this.I18n.t('js.admin.enterprise.trial.confirmation_info', {+ confirmation_info: (date:string, email:string) => { return this.trialRequested ? this.I18n.t('js.admin.enterprise.trial.confirmation_info', {date,email,- }): '',+ }) : ''},};constructor(protected I18n:I18nService,@@ -65,9 +65,10 @@ export class FreeTrialButtonComponent {public eeTrialService:EnterpriseTrialService,readonly timezoneService:TimezoneService) {}+ngOnInit() {const eeTrialKey = (window as any).gon.ee_trial_key;- if (eeTrialKey) {+ if (window.gon.ee_trial_key) {const savedDateStr = eeTrialKey.created.split(' ')[0];this.created = this.timezoneService.formattedDate(savedDateStr);}@@ -80,12 +81,14 @@ export class FreeTrialButtonComponent {this.email = userForm.email;});}+public openTrialModal():void {// cancel request and open first modal windowthis.eeTrialService.cancelled = true;this.eeTrialService.modalOpen = true;this.opModalService.show(EnterpriseTrialModalComponent, this.injector);}+public get trialRequested() {return window.gon.ee_trial_key !== undefined;}