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

Review changes: 1. Localize all texts and use 'email' consistently 2. checkmark added as html code 3. outsource iframe src (transform into trusted URL) 4. page headings restructured 5. modal configuration simplified 6. trial information also shown in modal window 7. codeclimate issues fixed

Inga Maibb38f2523f80
diff --git a/app/assets/stylesheets/content/_info_boxes.lsg b/app/assets/stylesheets/content/_info_boxes.lsg
index 9b06da7c13e..efbce59d68c 100644
--- a/app/assets/stylesheets/content/_info_boxes.lsg
+++ b/app/assets/stylesheets/content/_info_boxes.lsg
@@ -3,7 +3,7 @@
## Simple info boxes
```
<div class="info-boxes">
- <h2>Heading</h2>
+ <h2 class="info-boxes--title">Heading</h2>
<div class="info-boxes--container">
<div class="info-boxes--item">
<h3 class="info-boxes--item-title">Box 1</h3>
@@ -30,7 +30,7 @@
## Centered with image and links
```
<div class="info-boxes -centered">
- <h2>Heading</h2>
+ <h2 class="info-boxes--title">Heading</h2>
<div class="info-boxes--container">
<div class="info-boxes--item">
<img src="https://via.placeholder.com/250x200" class="info-boxes--teaser-image">
diff --git a/app/assets/stylesheets/content/_info_boxes.sass b/app/assets/stylesheets/content/_info_boxes.sass
index ba4e2d8b134..860c681a308 100644
--- a/app/assets/stylesheets/content/_info_boxes.sass
+++ b/app/assets/stylesheets/content/_info_boxes.sass
@@ -30,14 +30,16 @@
width: 100%
max-width: 1000px
- h2
- margin: 15px auto
+ .info-boxes--title,
+ .info-boxes--item-title
+ margin: 20px auto
+ font-weight: bold
&.-centered
max-width: 1140px
margin: auto
padding: 0 15px
- h2
+ .info-boxes--title
text-align: center
.info-boxes--container
@@ -53,9 +55,7 @@
.info-boxes--item-title
white-space: nowrap
- font-size: 1.2rem
border-bottom: none
- margin-top: 20px
.info-boxes--item-content
.widget-box--arrow-links
diff --git a/app/helpers/enterprise_trial_helper.rb b/app/helpers/enterprise_trial_helper.rb
index 4f21a300701..2e2d51c8d62 100644
--- a/app/helpers/enterprise_trial_helper.rb
+++ b/app/helpers/enterprise_trial_helper.rb
@@ -11,11 +11,11 @@ module EnterpriseTrialHelper
style_src: %w(js.chargebee.com openproject-enterprise-test.chargebee.com),
frame_src: %w(js.chargebee.com openproject-enterprise-test.chargebee.com)
)
- end
+ end
def youtube_content_security_policy
append_content_security_policy_directives(
- frame_src: %w['self' https://www.youtube.com]
+ frame_src: %w(https://www.youtube.com)
)
end
-end
\ No newline at end of file
+end
diff --git a/app/views/enterprises/_info.html.erb b/app/views/enterprises/_info.html.erb
index d9362af856b..b430f42b6b3 100644
--- a/app/views/enterprises/_info.html.erb
+++ b/app/views/enterprises/_info.html.erb
@@ -47,14 +47,14 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
<div class="info-boxes upsale-benefits">
- <h2><%= t('homescreen.blocks.upsale.description') %></h2>
+ <h3 class="info-boxes--title -no-border"><%= t('homescreen.blocks.upsale.description') %></h3>
<div class="info-boxes--container">
<div class="info-boxes--item">
<%= image_tag "https://1t1rycb9er64f1pgy2iuseow-wpengine.netdna-ssl.com/wp-content/uploads/2017/06/icon-security-features.png",
class: "info-boxes--teaser-image",
title: t('js.admin.enterprise.upsale.benefits.installation'),
alt: t('js.admin.enterprise.upsale.benefits.installation') %>
- <h3 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.installation') %></h3>
+ <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.installation') %></h4>
<div class="info-boxes--item-content">
<p><%= t('js.admin.enterprise.upsale.benefits.installation_text') %></p>
<ul class="widget-box--arrow-links">
@@ -71,7 +71,7 @@ See docs/COPYRIGHT.rdoc for more details.
class: "info-boxes--teaser-image",
title: t('js.admin.enterprise.upsale.benefits.professional_support'),
alt: t('js.admin.enterprise.upsale.benefits.professional_support') %>
- <h3 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.professional_support') %></h3>
+ <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.professional_support') %></h4>
<div class="info-boxes--item-content">
<p><%= t('js.admin.enterprise.upsale.benefits.professional_support_text') %></p>
<ul class="widget-box--arrow-links">
@@ -88,7 +88,7 @@ See docs/COPYRIGHT.rdoc for more details.
class: "info-boxes--teaser-image",
title: t('js.admin.enterprise.upsale.benefits.premium_features'),
alt: t('js.admin.enterprise.upsale.benefits.premium_features') %>
- <h3 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.premium_features') %></h3>
+ <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.premium_features') %></h4>
<div class="info-boxes--item-content">
<p><%= t('js.admin.enterprise.upsale.benefits.premium_features_text') %></p>
<ul class="widget-box--arrow-links">
@@ -105,7 +105,7 @@ See docs/COPYRIGHT.rdoc for more details.
class: "info-boxes--teaser-image",
title: t('js.admin.enterprise.upsale.benefits.high_security'),
alt: t('js.admin.enterprise.upsale.benefits.high_security') %>
- <h3 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.high_security') %></h3>
+ <h4 class="info-boxes--item-title"><%= t('js.admin.enterprise.upsale.benefits.high_security') %></h4>
<div class="info-boxes--item-content">
<p><%= t('js.admin.enterprise.upsale.benefits.high_security_text') %></p>
<ul class="widget-box--arrow-links">
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 229ab0f824d..cae48321968 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -183,30 +183,37 @@ en:
reset_to_defaults: 'Reset to defaults'
enterprise:
trial:
- confirmation: "Confirmation of email-address"
- confirmation_info: "We sent you and email. Please check your mails and click the confirmation link provided to start your 14 days trial."
- label_company: "Company"
- label_first_name: "First name"
- label_last_name: "Last name"
- label_email: "Email"
- label_domain: "Domain"
- label_subscriber: "Subscriber"
- label_maximum_users: "Maximum active users"
- label_starts_at: "Starts at"
- label_expires_at: "Expires at"
- label_status: "Status:"
- mail_not_received: "You did not receive a mail? Resend mail or"
- try_another_mail: "try with another mail address"
+ confirmation: "Confirmation of email address"
+ confirmation_info: "We sent you and email. Please check your emails and click the confirmation link provided to start your 14 days trial."
+ form:
+ general_consent: "I agree with the"
+ invalid_email: "Invalid email address"
+ label_company: "Company"
+ label_first_name: "First name"
+ label_last_name: "Last name"
+ label_email: "Email"
+ label_domain: "Domain"
+ label_subscriber: "Subscriber"
+ label_maximum_users: "Maximum active users"
+ label_starts_at: "Starts at"
+ label_expires_at: "Expires at"
+ privacy_policy: "privacy policy"
+ receive_newsletter: "I want to receive the OpenProject"
+ newsletter: "newsletter"
+ terms_of_service: "terms of service"
+ label_status:
+ email_not_received: "You did not receive an email? Resend email or"
+ try_another_email: "try with another email address"
+ try_another_email_hint: "Please be aware that your old email and confirmation link gets invalid if you try again with a new one."
next_steps: "Next steps"
next_step: "In the next step we will send you an email to the email-address provided."
- privacy_policy: "privacy policy"
resend_link: "Resend"
- resend_success: "Mail has been resent. Please check your mails and click the confirmation link provided."
- resend_warning: "Could not resend mail"
- session_timeout: "Your session timed out. Please try to resend mail."
+ resend_success: "Email has been resent. Please check your emails and click the confirmation link provided."
+ resend_warning: "Could not resend email."
+ session_timeout: "Your session timed out. Please try to resend email."
+ status_label: "Status:"
+ status_confirmed: "confirmed"
status_waiting: "email sent - waiting for confirmation"
- status_confirmed: "confirmed ✓"
- terms_of_service: "terms of service"
test_ee: "Test the Enterprise Edition 14 days for free"
quick_overview: "Get a quick overview of project management and team collaboration with OpenProject Enterprise Edition."
upsale:
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts
index 986f4e3ec05..048330e1688 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts
@@ -38,11 +38,11 @@ import {DynamicBootstrapper} from "core-app/globals/dynamic-bootstrapper";
})
export class EEActiveTrialComponent implements OnInit {
public text = {
- label_email: this.I18n.t('js.admin.enterprise.trial.label_email'),
- label_expires_at: this.I18n.t('js.admin.enterprise.trial.label_expires_at'),
- label_maximum_users: this.I18n.t('js.admin.enterprise.trial.label_maximum_users'),
- label_starts_at: this.I18n.t('js.admin.enterprise.trial.label_starts_at'),
- label_subscriber: this.I18n.t('js.admin.enterprise.trial.label_subscriber')
+ label_email: this.I18n.t('js.admin.enterprise.trial.form.label_email'),
+ label_expires_at: this.I18n.t('js.admin.enterprise.trial.form.label_expires_at'),
+ label_maximum_users: this.I18n.t('js.admin.enterprise.trial.form.label_maximum_users'),
+ label_starts_at: this.I18n.t('js.admin.enterprise.trial.form.label_starts_at'),
+ label_subscriber: this.I18n.t('js.admin.enterprise.trial.form.label_subscriber')
};
public subscriber = this.elementRef.nativeElement.dataset['subscriber'];
public email = this.elementRef.nativeElement.dataset['email'];
diff --git a/frontend/src/app/components/enterprise/enterprise-base.component.html b/frontend/src/app/components/enterprise/enterprise-base.component.html
index ebebc647c42..184886cbe70 100644
--- a/frontend/src/app/components/enterprise/enterprise-base.component.html
+++ b/frontend/src/app/components/enterprise/enterprise-base.component.html
@@ -4,11 +4,10 @@
</p>
<div *ngIf="eeTrialService.status === 'mailSubmitted'">
- <enterprise-trial-waiting>
- <enterprise-active-trial></enterprise-active-trial>
- </enterprise-trial-waiting>
- <p class="confirmation-hint">{{ text.mail_not_received }}
- <a (click)="openTrialModal()">{{ text.try_another_mail }}.</a>
+ <enterprise-trial-waiting></enterprise-trial-waiting>
+ <p class="confirmation-hint">{{ text.email_not_received }}
+ <a (click)="openTrialModal()">{{ text.try_another_email }}.</a><br>
+ {{ text.try_another_email_hint }}
</p>
</div>
diff --git a/frontend/src/app/components/enterprise/enterprise-base.component.ts b/frontend/src/app/components/enterprise/enterprise-base.component.ts
index 3aa4b4f670c..5d6250bd06e 100644
--- a/frontend/src/app/components/enterprise/enterprise-base.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-base.component.ts
@@ -45,8 +45,9 @@ export class EnterpriseBaseComponent {
link_quote: this.I18n.t('js.admin.enterprise.upsale.link_quote'),
become_hero: this.I18n.t('js.admin.enterprise.upsale.become_hero'),
you_contribute: this.I18n.t('js.admin.enterprise.upsale.you_contribute'),
- mail_not_received: this.I18n.t('js.admin.enterprise.trial.mail_not_received'),
- try_another_mail: this.I18n.t('js.admin.enterprise.trial.try_another_mail')
+ email_not_received: this.I18n.t('js.admin.enterprise.trial.email_not_received'),
+ try_another_email: this.I18n.t('js.admin.enterprise.trial.try_another_email'),
+ try_another_email_hint: this.I18n.t('js.admin.enterprise.trial.try_another_email_hint')
};
constructor(protected I18n:I18nService,
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
index 3b79739ee71..0bb6e14deaf 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
@@ -54,7 +54,7 @@
class="form--check-box"
formControlName="general_consent">
</div>
- <span>I agree with the
+ <span>{{ text.general_consent }}
<a href="https://www.openproject.com/terms-of-service/" target="_blank">{{ text.terms_of_service }}</a>
and the
<a href="https://www.openproject.com/legal-notice/" target="_blank">{{ text.privacy_policy }}</a>.
@@ -70,9 +70,9 @@
class="form--check-box"
formControlName="newsletter_consent">
</div>
- <span>I want to receive the OpenProject
+ <span>{{ text.receive_newsletter }}
<a href="https://www.openproject.com/newsletter/" target="_blank">
- newsletter</a>.
+ {{ text.newsletter }}</a>.
</span>
</label>
</div>
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
index a7bc6ddf4f0..0e86d10e3b0 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
@@ -49,15 +49,19 @@ export class EETrialFormComponent {
});
public text = {
- label_test_ee: this.I18n.t('js.admin.enterprise.trial.test_ee'),
- label_company: this.I18n.t('js.admin.enterprise.trial.label_company'),
- label_first_name: this.I18n.t('js.admin.enterprise.trial.label_first_name'),
- label_last_name: this.I18n.t('js.admin.enterprise.trial.label_last_name'),
- label_email: this.I18n.t('js.admin.enterprise.trial.label_email'),
- label_domain: this.I18n.t('js.admin.enterprise.trial.label_domain'),
+ general_consent: this.I18n.t('js.admin.enterprise.trial.form.general_consent'),
+ invalid_email: this.I18n.t('js.admin.enterprise.trial.form.invalid_email'),
+ label_test_ee: this.I18n.t('js.admin.enterprise.trial.form.test_ee'),
+ label_company: this.I18n.t('js.admin.enterprise.trial.form.label_company'),
+ label_first_name: this.I18n.t('js.admin.enterprise.trial.form.label_first_name'),
+ label_last_name: this.I18n.t('js.admin.enterprise.trial.form.label_last_name'),
+ label_email: this.I18n.t('js.admin.enterprise.trial.form.label_email'),
+ label_domain: this.I18n.t('js.admin.enterprise.trial.form.label_domain'),
next_step: this.I18n.t('js.admin.enterprise.trial.next_step'),
- privacy_policy: this.I18n.t('js.admin.enterprise.trial.privacy_policy'),
- terms_of_service: this.I18n.t('js.admin.enterprise.trial.terms_of_service')
+ privacy_policy: this.I18n.t('js.admin.enterprise.trial.form.privacy_policy'),
+ receive_newsletter: this.I18n.t('js.admin.enterprise.trial.form.receive_newsletter'),
+ newsletter: this.I18n.t('js.admin.enterprise.trial.form.newsletter'),
+ terms_of_service: this.I18n.t('js.admin.enterprise.trial.form.terms_of_service')
};
constructor(readonly elementRef:ElementRef,
@@ -71,7 +75,7 @@ export class EETrialFormComponent {
// displays message for user
public checkMailField() {
if (this.trialForm.value.email !== '' && this.trialForm.controls.email.errors) {
- this.eeTrialService.errorMsg = 'Invalid e-mail address';
+ this.eeTrialService.errorMsg = this.text.invalid_email;
} else {
this.eeTrialService.errorMsg = undefined;
}
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html
index e939ba85d36..042bf33a43c 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html
@@ -3,13 +3,9 @@
data-indicator-name="modal"
tabindex="0">
<div class="op-modal--modal-header">
- <h3 *ngIf="!eeTrialService.status"> {{ text.heading_test_ee }}</h3>
- <h3 *ngIf="eeTrialService.status === 'mailSubmitted'">{{ text.heading_confirmation }}</h3>
- <h3 *ngIf="eeTrialService.status === 'startTrial'">{{ text.heading_next_steps }}</h3>
+ <h3 [textContent]="headerText()"></h3>
<a *ngIf="showClose" class="op-modal--modal-close-button">
- <i class="icon-close"
- (click)="closeModal($event)"
- [attr.title]="text.close_popup">
+ <i class="icon-close" (click)="closeModal($event)" [attr.title]="text.close_popup">
</i>
</a>
</div>
@@ -34,7 +30,7 @@
height="400"
width="100%"
allowfullscreen=""
- src="https://www.youtube.com/embed/zLMSydhFSkw?autoplay=1">
+ [src]="trustedEEVideoURL()">
</iframe>
</div>
</div>
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts
index e313a8dad8b..8312ee14c5d 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts
@@ -27,6 +27,7 @@
// ++
import {AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, Input, ViewChild} from "@angular/core";
+import {DomSanitizer} from "@angular/platform-browser";
import {FormControl, FormGroup} from "@angular/forms";
import {OpModalComponent} from "app/components/op-modals/op-modal.component";
import {OpModalLocalsToken} from "app/components/op-modals/op-modal.service";
@@ -35,12 +36,6 @@ import {I18nService} from "app/modules/common/i18n/i18n.service";
import {EETrialFormComponent} from "core-components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component";
import {EnterpriseTrialService} from "core-components/enterprise/enterprise-trial.service";
-export interface EnterpriseTrialOptions {
- closeByEscape?:boolean;
- showClose?:boolean;
- closeByDocument?:boolean;
-}
-
@Component({
selector: 'enterprise-trial-modal',
templateUrl: './enterprise-trial.modal.html',
@@ -52,14 +47,17 @@ export class EnterpriseTrialModal extends OpModalComponent implements AfterViewI
public trialForm:FormGroup;
- public showClose:boolean;
public confirmed:boolean;
public cancelled = false;
public status:string;
public errorMsg:string|undefined;
- private options:EnterpriseTrialOptions;
+ // modal configuration
+ public showClose = true;
+ public closeOnEscape = false;
+ public closeOnOutsideClick = false;
+ public eeOnboardingVideoURL = 'https://www.youtube.com/embed/zLMSydhFSkw?autoplay=1';
public text = {
button_submit: this.I18n.t('js.modals.button_submit'),
button_cancel: this.I18n.t('js.modals.button_cancel'),
@@ -76,14 +74,9 @@ export class EnterpriseTrialModal extends OpModalComponent implements AfterViewI
@Inject(OpModalLocalsToken) public locals:OpModalLocalsMap,
readonly cdRef:ChangeDetectorRef,
readonly I18n:I18nService,
+ readonly domSanitizer:DomSanitizer,
public eeTrialService:EnterpriseTrialService) {
super(locals, cdRef, elementRef);
-
- // modal configuration
- this.options = locals.options || {};
- this.closeOnEscape = _.defaultTo(this.options.closeByEscape, false);
- this.closeOnOutsideClick = _.defaultTo(this.options.closeByDocument, true);
- this.showClose = _.defaultTo(this.options.showClose, true);
}
ngAfterViewInit() {
@@ -105,14 +98,27 @@ export class EnterpriseTrialModal extends OpModalComponent implements AfterViewI
this.eeTrialService.status = 'startTrial';
}
+ public headerText() {
+ switch (this.eeTrialService.status) {
+ case 'mailSubmitted':
+ return this.text.heading_confirmation;
+ case 'startTrial':
+ return this.text.heading_next_steps;
+ default:
+ return this.text.heading_test_ee;
+ }
+ }
+
public closeModal(event:any) {
- // cancel all actions (e.g. an already send request)
- this.eeTrialService.cancelled = true;
this.closeMe(event);
// refresh page to show enterprise trial
if (this.eeTrialService.status === 'startTrial' || this.eeTrialService.confirmed) {
window.location.reload();
}
}
+
+ public trustedEEVideoURL() {
+ return this.domSanitizer.bypassSecurityTrustResourceUrl(this.eeOnboardingVideoURL);
+ }
}
diff --git a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html b/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
index 8070a95f187..7db2b2a8e2a 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
+++ b/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
@@ -1,8 +1,8 @@
-<ng-content></ng-content>
+<enterprise-active-trial></enterprise-active-trial>
<p>{{ text.confirmation_info }}</p>
<p>
- <span>{{ text.label_status }} </span>
+ <span>{{ text.status_label }} </span>
<span *ngIf="!eeTrialService.confirmed; else confirmedStatus" class="status--waiting">
{{ text.status_waiting }}
<a id="resend-link" (click)="eeTrialService.resendMail()">{{ text.resend }}</a>
@@ -11,6 +11,6 @@
</span>
<ng-template #confirmedStatus>
- <span class="status--confirmed">{{ text.status_confirmed }}</span>
+ <span class="status--confirmed">{{ text.status_confirmed }} &#x2713;</span>
</ng-template>
</p>
\ No newline at end of file
diff --git a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts b/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
index fb9e7cf669d..7bd6aae3cb7 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
@@ -38,11 +38,11 @@ import {EnterpriseTrialService} from "app/components/enterprise/enterprise-trial
export class EETrialWaitingComponent {
public text = {
confirmation_info: this.I18n.t('js.admin.enterprise.trial.confirmation_info'),
- label_status: this.I18n.t('js.admin.enterprise.trial.label_status'),
resend: this.I18n.t('js.admin.enterprise.trial.resend_link'),
session_timeout: this.I18n.t('js.admin.enterprise.trial.session_timeout'),
- status_waiting: this.I18n.t('js.admin.enterprise.trial.status_waiting'),
- status_confirmed: this.I18n.t('js.admin.enterprise.trial.status_confirmed')
+ status_confirmed: this.I18n.t('js.admin.enterprise.trial.status_confirmed'),
+ status_label: this.I18n.t('js.admin.enterprise.trial.status_label'),
+ status_waiting: this.I18n.t('js.admin.enterprise.trial.status_waiting')
};
constructor(readonly elementRef:ElementRef,
diff --git a/frontend/src/app/components/enterprise/enterprise-trial.service.ts b/frontend/src/app/components/enterprise/enterprise-trial.service.ts
index 777156fb9ec..02e8942e440 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial.service.ts
+++ b/frontend/src/app/components/enterprise/enterprise-trial.service.ts
@@ -23,7 +23,7 @@ export class EnterpriseTrialService {
public confirmed:boolean;
public cancelled = false;
- public status:string|undefined;
+ public status:'mailSubmitted'|'startTrial'|undefined;
public errorMsg:string|undefined;
constructor(readonly I18n:I18nService,