diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index f68641047..6b18e5feb 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -244,15 +244,19 @@ export class AppComponent implements OnInit { | |||
244 | if (user.noWelcomeModal !== true) return this.welcomeModal.show() | 244 | if (user.noWelcomeModal !== true) return this.welcomeModal.show() |
245 | 245 | ||
246 | const config = this.serverService.getConfig() | 246 | const config = this.serverService.getConfig() |
247 | 247 | if (user.noInstanceConfigWarningModal === true || !config.signup.allowed) return | |
248 | if (user.noInstanceConfigWarningModal !== true && config.signup.allowed && config.instance.name.toLowerCase() === 'peertube') { | 248 | |
249 | this.instanceService.getAbout() | 249 | this.instanceService.getAbout() |
250 | .subscribe(about => { | 250 | .subscribe(about => { |
251 | if (!about.instance.terms) { | 251 | if ( |
252 | this.instanceConfigWarningModal.show() | 252 | config.instance.name.toLowerCase() === 'peertube' || |
253 | } | 253 | !about.instance.terms || |
254 | }) | 254 | !about.instance.administrator || |
255 | } | 255 | !about.instance.maintenanceLifetime |
256 | ) { | ||
257 | this.instanceConfigWarningModal.show(about) | ||
258 | } | ||
259 | }) | ||
256 | } | 260 | } |
257 | 261 | ||
258 | private initHotkeys () { | 262 | private initHotkeys () { |