Skip to content

Commit fd88b95

Browse files
authored
Fixed confirmation message for signup page. (#356)
1 parent fa537d6 commit fd88b95

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/users/user-signup/ko/runtime/user-signup.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<p>Follow the instructions from the email to verify your account.</p>
33
<!-- /ko -->
44

5+
56
<!-- ko ifnot: working -->
7+
<!-- ko ifnot: isUserRequested -->
68
<form data-bind="submit: signup">
79
<fieldset>
810
<div class="form-group">
@@ -70,4 +72,5 @@
7072
</div>
7173
</fieldset>
7274
</form>
75+
<!-- /ko -->
7376
<!-- /ko -->

src/components/users/user-signup/ko/runtime/user-signup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class UserSignup {
2222
public readonly passwordConfirmation: ko.Observable<string>;
2323
public readonly firstName: ko.Observable<string>;
2424
public readonly lastName: ko.Observable<string>;
25+
public readonly isUserRequested: ko.Observable<boolean>;
2526
public readonly showTerms: ko.Observable<boolean>;
2627
public readonly consented: ko.Observable<boolean>;
2728
public readonly showHideLabel: ko.Observable<string>;
@@ -37,6 +38,7 @@ export class UserSignup {
3738
this.passwordConfirmation = ko.observable("");
3839
this.firstName = ko.observable("");
3940
this.lastName = ko.observable("");
41+
this.isUserRequested = ko.observable(false);
4042
this.isConsentRequired = ko.observable(false);
4143
this.consented = ko.observable(false);
4244
this.showTerms = ko.observable();
@@ -62,6 +64,7 @@ export class UserSignup {
6264
this.captcha.extend(<any>{ required: { message: `Captcha is required.` } });
6365
}
6466

67+
6568
@Param()
6669
public requireHipCaptcha: ko.Observable<boolean>;
6770

@@ -201,6 +204,8 @@ export class UserSignup {
201204
await this.usersService.createSignupRequest(mapiSignupData);
202205
}
203206

207+
this.isUserRequested(true);
208+
204209
const validationReport: ValidationReport = {
205210
source: "signup",
206211
errors: []

0 commit comments

Comments
 (0)