diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-25 16:14:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-26 10:01:42 +0200 |
commit | 98ab5dc81048d47d08a231f17698128f959e59b2 (patch) | |
tree | 7f74f835dc35d9f72918c56857f7f28b70d7053f /client/src/app/app.component.ts | |
parent | 851675c5591dcab1070183f0ed1b1a788de07d2c (diff) | |
download | PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip |
Remove useless async
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 4d5a9f75f..ae6046cc1 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -220,7 +220,7 @@ export class AppComponent implements OnInit, AfterViewInit { | |||
220 | } | 220 | } |
221 | } | 221 | } |
222 | 222 | ||
223 | private async openModalsIfNeeded () { | 223 | private openModalsIfNeeded () { |
224 | this.authService.userInformationLoaded | 224 | this.authService.userInformationLoaded |
225 | .pipe( | 225 | .pipe( |
226 | map(() => this.authService.getUser()), | 226 | map(() => this.authService.getUser()), |
@@ -232,7 +232,7 @@ export class AppComponent implements OnInit, AfterViewInit { | |||
232 | ).subscribe(({ serverConfig, user }) => this._openAdminModalsIfNeeded(serverConfig, user)) | 232 | ).subscribe(({ serverConfig, user }) => this._openAdminModalsIfNeeded(serverConfig, user)) |
233 | } | 233 | } |
234 | 234 | ||
235 | private async _openAdminModalsIfNeeded (serverConfig: ServerConfig, user: User) { | 235 | private _openAdminModalsIfNeeded (serverConfig: ServerConfig, user: User) { |
236 | if (user.noWelcomeModal !== true) return this.welcomeModal.show() | 236 | if (user.noWelcomeModal !== true) return this.welcomeModal.show() |
237 | 237 | ||
238 | if (user.noInstanceConfigWarningModal === true || !serverConfig.signup.allowed) return | 238 | if (user.noInstanceConfigWarningModal === true || !serverConfig.signup.allowed) return |