aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+signup
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 11:27:47 +0200
committerChocobozzz <me@florianbigard.com>2021-08-17 14:01:45 +0200
commit1378c0d343028f3d40d7d795422684ab9e6a1599 (patch)
tree08062b84a38a7e2dfe0aa674e7ca8e1b7321044e /client/src/app/+signup
parentc186a67f90203af6bfa434f026efdc99193bcd65 (diff)
downloadPeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.gz
PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.zst
PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.zip
Fix client lint
Diffstat (limited to 'client/src/app/+signup')
-rw-r--r--client/src/app/+signup/+register/register.component.ts20
-rw-r--r--client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts10
-rw-r--r--client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts8
3 files changed, 18 insertions, 20 deletions
diff --git a/client/src/app/+signup/+register/register.component.ts b/client/src/app/+signup/+register/register.component.ts
index 241ca04c6..056442107 100644
--- a/client/src/app/+signup/+register/register.component.ts
+++ b/client/src/app/+signup/+register/register.component.ts
@@ -122,8 +122,8 @@ export class RegisterComponent implements OnInit {
122 'filter:api.signup.registration.create.params' 122 'filter:api.signup.registration.create.params'
123 ) 123 )
124 124
125 this.userService.signup(body).subscribe( 125 this.userService.signup(body).subscribe({
126 () => { 126 next: () => {
127 this.signupDone = true 127 this.signupDone = true
128 128
129 if (this.requiresEmailVerification) { 129 if (this.requiresEmailVerification) {
@@ -133,16 +133,16 @@ export class RegisterComponent implements OnInit {
133 133
134 // Auto login 134 // Auto login
135 this.authService.login(body.username, body.password) 135 this.authService.login(body.username, body.password)
136 .subscribe( 136 .subscribe({
137 () => { 137 next: () => {
138 this.success = $localize`You are now logged in as ${body.username}!` 138 this.success = $localize`You are now logged in as ${body.username}!`
139 }, 139 },
140 140
141 err => this.error = err.message 141 error: err => this.error = err.message
142 ) 142 })
143 }, 143 },
144 144
145 err => this.error = err.message 145 error: err => this.error = err.message
146 ) 146 })
147 } 147 }
148} 148}
diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts
index afb0e6d6c..83c24a251 100644
--- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts
+++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts
@@ -34,15 +34,13 @@ export class VerifyAccountAskSendEmailComponent extends FormReactive implements
34 askSendVerifyEmail () { 34 askSendVerifyEmail () {
35 const email = this.form.value['verify-email-email'] 35 const email = this.form.value['verify-email-email']
36 this.userService.askSendVerifyEmail(email) 36 this.userService.askSendVerifyEmail(email)
37 .subscribe( 37 .subscribe({
38 () => { 38 next: () => {
39 this.notifier.success($localize`An email with verification link will be sent to ${email}.`) 39 this.notifier.success($localize`An email with verification link will be sent to ${email}.`)
40 this.redirectService.redirectToHomepage() 40 this.redirectService.redirectToHomepage()
41 }, 41 },
42 42
43 err => { 43 error: err => this.notifier.error(err.message)
44 this.notifier.error(err.message) 44 })
45 }
46 )
47 } 45 }
48} 46}
diff --git a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts
index acc688ab3..457a0abe0 100644
--- a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts
+++ b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts
@@ -38,8 +38,8 @@ export class VerifyAccountEmailComponent implements OnInit {
38 38
39 verifyEmail () { 39 verifyEmail () {
40 this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) 40 this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail)
41 .subscribe( 41 .subscribe({
42 () => { 42 next: () => {
43 if (this.authService.isLoggedIn()) { 43 if (this.authService.isLoggedIn()) {
44 this.authService.refreshUserInformation() 44 this.authService.refreshUserInformation()
45 } 45 }
@@ -47,11 +47,11 @@ export class VerifyAccountEmailComponent implements OnInit {
47 this.success = true 47 this.success = true
48 }, 48 },
49 49
50 err => { 50 error: err => {
51 this.failed = true 51 this.failed = true
52 52
53 this.notifier.error(err.message) 53 this.notifier.error(err.message)
54 } 54 }
55 ) 55 })
56 } 56 }
57} 57}