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
Add email and name to string and initialize with Augur data after reload
Inga Mai19c78eaf3264
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 09703554f36..fc0b45d6198 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -185,7 +185,9 @@ en:enterprise:trial:confirmation: "Confirmation of email address"- confirmation_info: "We sent you an email. Please check your emails and click the confirmation link provided to start your 14 days trial."+ confirmation_info: >+ We sent you an email on %{date} to %{email}.+ Please check your inbox and click the confirmation link provided to start your 14 days trial."form:general_consent: >I agree with the <a target="_blank" href="%{link_terms}">terms of service</a>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.tsindex 7ef6186ac15..719769a8803 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@@ -26,21 +26,24 @@// See docs/COPYRIGHT.rdoc for more details.// ++-import {Component, ElementRef} from "@angular/core";+import {ChangeDetectorRef, Component, ElementRef, OnInit} from "@angular/core";import {I18nService} from "app/modules/common/i18n/i18n.service";-import {EnterpriseTrialService} from "app/components/enterprise/enterprise-trial.service";+import {EnterpriseTrialData, EnterpriseTrialService} from "app/components/enterprise/enterprise-trial.service";import {HttpClient} from "@angular/common/http";import {NotificationsService} from "core-app/modules/common/notifications/notifications.service";-+import {distinctUntilChanged} from "rxjs/operators";@Component({selector: 'enterprise-trial-waiting',templateUrl: './ee-trial-waiting.component.html',styleUrls: ['./ee-trial-waiting.component.sass']})-export class EETrialWaitingComponent {+export class EETrialWaitingComponent implements OnInit {public text = {- confirmation_info: this.I18n.t('js.admin.enterprise.trial.confirmation_info'),+ confirmation_info: this.I18n.t('js.admin.enterprise.trial.confirmation_info', {+ date: '',+ email: this.eeTrialService.userData$.getValueOr({})+ }),resend: this.I18n.t('js.admin.enterprise.trial.resend_link'),resend_success: this.I18n.t('js.admin.enterprise.trial.resend_success'),resend_warning: this.I18n.t('js.admin.enterprise.trial.resend_warning'),@@ -51,12 +54,29 @@ export class EETrialWaitingComponent {};constructor(readonly elementRef:ElementRef,+ readonly cdRef:ChangeDetectorRef,readonly I18n:I18nService,protected http:HttpClient,protected notificationsService:NotificationsService,public eeTrialService:EnterpriseTrialService) {}+ ngOnInit() {+ this.eeTrialService.userData$+ .values$()+ .pipe(+ distinctUntilChanged(),+ )+ .subscribe(userForm => {+ this.text.confirmation_info = this.I18n.t('js.admin.enterprise.trial.confirmation_info', {+ date: '',+ email: userForm.email+ });++ this.cdRef.detectChanges();+ });+ }+// resend mail if resend link has been clickedpublic resendMail() {this.eeTrialService.cancelled = false;