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

Show other attributes in waiting screen

Inga Mai2b3e4e46b136
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
index 42d84c33739..e50e7624e85 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
@@ -43,6 +43,8 @@ export class EEActiveSavedTrialComponent extends EEActiveTrialBase {
public userCount = this.elementRef.nativeElement.dataset['userCount'];
public startsAt = this.elementRef.nativeElement.dataset['startsAt'];
public expiresAt = this.elementRef.nativeElement.dataset['expiresAt'];
+ public company:string;
+ public domain:string;
constructor(readonly elementRef:ElementRef,
readonly I18n:I18nService) {
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts
index 72b8abc351f..1e51c5413f8 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts
+++ b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts
@@ -34,6 +34,8 @@ export class EEActiveTrialBase extends UntilDestroyedMixin {
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_company: this.I18n.t('js.admin.enterprise.trial.form.label_company'),
+ label_domain: this.I18n.t('js.admin.enterprise.trial.form.label_domain'),
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')
};
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html
index fb1878b81c5..26d34908127 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html
+++ b/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html
@@ -13,6 +13,18 @@
<span>{{ email }}</span>
</div>
</div>
+ <div *ngIf="company" class="attributes-key-value--key">{{ text.label_company }}</div>
+ <div *ngIf="company" class="attributes-key-value--value-container">
+ <div class="attributes-key-value--value -text">
+ <span>{{ company }}</span>
+ </div>
+ </div>
+ <div *ngIf="domain" class="attributes-key-value--key">{{ text.label_domain }}</div>
+ <div *ngIf="domain" class="attributes-key-value--value-container">
+ <div class="attributes-key-value--value -text">
+ <span>{{ domain }}</span>
+ </div>
+ </div>
<div *ngIf="userCount" class="attributes-key-value--key">{{ text.label_maximum_users }}</div>
<div *ngIf="userCount" class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
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 a8b289e0c27..468b1553d2b 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
@@ -45,6 +45,8 @@ export class EEActiveTrialComponent extends EEActiveTrialBase implements OnInit
public userCount:string;
public startsAt:string;
public expiresAt:string;
+ public company:string;
+ public domain:string;
constructor(readonly elementRef:ElementRef,
readonly cdRef:ChangeDetectorRef,
@@ -62,9 +64,8 @@ export class EEActiveTrialComponent extends EEActiveTrialBase implements OnInit
distinctUntilChanged(),
this.untilDestroyed()
)
- .subscribe(data => {
- this.subscriber = data.subscriber;
- this.email = data.email;
+ .subscribe(userForm => {
+ this.formatUserData(userForm);
this.cdRef.detectChanges();
});
@@ -88,9 +89,8 @@ export class EEActiveTrialComponent extends EEActiveTrialBase implements OnInit
this.http
.get<any>(this.eeTrialService.trialLink + '/details')
.toPromise()
- .then((userData:any) => {
- this.subscriber = userData.first_name + ' ' + userData.last_name;
- this.email = userData.email;
+ .then((userForm:any) => {
+ this.formatUserData(userForm);
this.eeTrialService.retryConfirmation();
})
.catch((error:HttpErrorResponse) => {
@@ -99,4 +99,11 @@ export class EEActiveTrialComponent extends EEActiveTrialBase implements OnInit
});
}
+ private formatUserData(userForm:any) {
+ this.subscriber = userForm.first_name + ' ' + userForm.last_name;
+ this.email = userForm.email;
+ this.company = userForm.company;
+ this.domain = userForm.domain;
+ }
+
}
diff --git a/frontend/src/app/components/enterprise/enterprise-trial.service.ts b/frontend/src/app/components/enterprise/enterprise-trial.service.ts
index 17572cb3e4e..729a0fe0e17 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial.service.ts
+++ b/frontend/src/app/components/enterprise/enterprise-trial.service.ts
@@ -11,7 +11,7 @@ export class EnterpriseTrialService {
// user data needs to be sync in ee-active-trial.component.ts
private userDataSubject = new BehaviorSubject<any>({});
public userData$ = this.userDataSubject.asObservable();
- public userData:{subscriber:string, email:string};
+ public userData:any;
public baseUrlAugur:string;
@@ -39,10 +39,7 @@ export class EnterpriseTrialService {
// send POST request with form object
// receive an enterprise trial link to access a token
public sendForm(form:FormGroup) {
- this.userData = {
- subscriber: form.value.first_name + ' ' + form.value.last_name,
- email: form.value.email
- };
+ this.userData = form.value;
this.userDataSubject.next(this.userData);
this.cancelled = false;