aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/modal
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/modal')
-rw-r--r--client/src/app/modal/instance-config-warning-modal.component.ts8
-rw-r--r--client/src/app/modal/quick-settings-modal.component.ts12
-rw-r--r--client/src/app/modal/welcome-modal.component.ts8
3 files changed, 14 insertions, 14 deletions
diff --git a/client/src/app/modal/instance-config-warning-modal.component.ts b/client/src/app/modal/instance-config-warning-modal.component.ts
index 8bf7672be..e40958976 100644
--- a/client/src/app/modal/instance-config-warning-modal.component.ts
+++ b/client/src/app/modal/instance-config-warning-modal.component.ts
@@ -50,10 +50,10 @@ export class InstanceConfigWarningModalComponent {
50 peertubeLocalStorage.setItem(this.LOCAL_STORAGE_KEYS.NO_INSTANCE_CONFIG_WARNING_MODAL, 'true') 50 peertubeLocalStorage.setItem(this.LOCAL_STORAGE_KEYS.NO_INSTANCE_CONFIG_WARNING_MODAL, 'true')
51 51
52 this.userService.updateMyProfile({ noInstanceConfigWarningModal: true }) 52 this.userService.updateMyProfile({ noInstanceConfigWarningModal: true })
53 .subscribe( 53 .subscribe({
54 () => console.log('We will not open the instance config warning modal again.'), 54 next: () => console.log('We will not open the instance config warning modal again.'),
55 55
56 err => this.notifier.error(err.message) 56 error: err => this.notifier.error(err.message)
57 ) 57 })
58 } 58 }
59} 59}
diff --git a/client/src/app/modal/quick-settings-modal.component.ts b/client/src/app/modal/quick-settings-modal.component.ts
index 99859a1a5..7a53179cb 100644
--- a/client/src/app/modal/quick-settings-modal.component.ts
+++ b/client/src/app/modal/quick-settings-modal.component.ts
@@ -31,20 +31,20 @@ export class QuickSettingsModalComponent extends FormReactive implements OnInit
31 ngOnInit () { 31 ngOnInit () {
32 this.user = this.userService.getAnonymousUser() 32 this.user = this.userService.getAnonymousUser()
33 this.localStorageService.watch() 33 this.localStorageService.watch()
34 .subscribe( 34 .subscribe({
35 () => this.user = this.userService.getAnonymousUser() 35 next: () => this.user = this.userService.getAnonymousUser()
36 ) 36 })
37 37
38 this.userInformationLoaded.next(true) 38 this.userInformationLoaded.next(true)
39 39
40 this.authService.loginChangedSource 40 this.authService.loginChangedSource
41 .pipe(filter(status => status !== AuthStatus.LoggedIn)) 41 .pipe(filter(status => status !== AuthStatus.LoggedIn))
42 .subscribe( 42 .subscribe({
43 () => { 43 next: () => {
44 this.user = this.userService.getAnonymousUser() 44 this.user = this.userService.getAnonymousUser()
45 this.userInformationLoaded.next(true) 45 this.userInformationLoaded.next(true)
46 } 46 }
47 ) 47 })
48 } 48 }
49 49
50 isUserLoggedIn () { 50 isUserLoggedIn () {
diff --git a/client/src/app/modal/welcome-modal.component.ts b/client/src/app/modal/welcome-modal.component.ts
index 72ae20b43..06fe4cba5 100644
--- a/client/src/app/modal/welcome-modal.component.ts
+++ b/client/src/app/modal/welcome-modal.component.ts
@@ -37,10 +37,10 @@ export class WelcomeModalComponent {
37 peertubeLocalStorage.setItem(this.LOCAL_STORAGE_KEYS.NO_WELCOME_MODAL, 'true') 37 peertubeLocalStorage.setItem(this.LOCAL_STORAGE_KEYS.NO_WELCOME_MODAL, 'true')
38 38
39 this.userService.updateMyProfile({ noWelcomeModal: true }) 39 this.userService.updateMyProfile({ noWelcomeModal: true })
40 .subscribe( 40 .subscribe({
41 () => console.log('We will not open the welcome modal again.'), 41 next: () => console.log('We will not open the welcome modal again.'),
42 42
43 err => this.notifier.error(err.message) 43 error: err => this.notifier.error(err.message)
44 ) 44 })
45 } 45 }
46} 46}