From c0e04e46417c7819f024e45896240d4b7331be86 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Feb 2019 15:00:26 +0100 Subject: Move user registration info in features table --- .../about-instance/about-instance.component.html | 20 -------------------- .../about-instance/about-instance.component.ts | 8 -------- .../instance/instance-features-table.component.html | 18 +++++++++--------- .../instance/instance-features-table.component.ts | 5 ++++- 4 files changed, 13 insertions(+), 38 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index 8c700752e..83376b6f6 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -21,26 +21,6 @@
- -
-
Signup
- -
- User registration is allowed and - - - this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users. - - - - this instance provides unlimited space for the videos of its users. - -
- -
- User registration is currently not allowed. -
-
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts index ec572ff80..c9eab44ab 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts @@ -29,14 +29,6 @@ export class AboutInstanceComponent implements OnInit { return this.serverService.getConfig().instance.name } - get userVideoQuota () { - return this.serverService.getConfig().user.videoQuota - } - - get isSignupAllowed () { - return this.serverService.getConfig().signup.allowed - } - get isContactFormEnabled () { return this.serverService.getConfig().email.enabled && this.serverService.getConfig().contactForm.enabled } diff --git a/client/src/app/shared/instance/instance-features-table.component.html b/client/src/app/shared/instance/instance-features-table.component.html index dc8db8cc1..90046f409 100644 --- a/client/src/app/shared/instance/instance-features-table.component.html +++ b/client/src/app/shared/instance/instance-features-table.component.html @@ -1,6 +1,14 @@
+ + + + + @@ -16,13 +24,5 @@ - - - - -
{{ feature.label }} + + +
Video quota
{{ feature.label }} - - -
-
\ No newline at end of file +
diff --git a/client/src/app/shared/instance/instance-features-table.component.ts b/client/src/app/shared/instance/instance-features-table.component.ts index da8da0702..aaf0a6960 100644 --- a/client/src/app/shared/instance/instance-features-table.component.ts +++ b/client/src/app/shared/instance/instance-features-table.component.ts @@ -37,6 +37,10 @@ export class InstanceFeaturesTableComponent implements OnInit { const config = this.serverService.getConfig() this.features = [ + { + label: this.i18n('User registration allowed'), + value: config.signup.allowed + }, { label: this.i18n('Transcode your videos in multiple resolutions'), value: config.transcoding.enabledResolutions.length !== 0 @@ -50,7 +54,6 @@ export class InstanceFeaturesTableComponent implements OnInit { value: config.import.videos.torrent.enabled } ] - } private getApproximateTime (seconds: number) { -- cgit v1.2.3