aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-settings
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/account/account-settings')
-rw-r--r--client/src/app/account/account-settings/account-details/account-details.component.html29
-rw-r--r--client/src/app/account/account-settings/account-details/account-details.component.scss6
2 files changed, 18 insertions, 17 deletions
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.html b/client/src/app/account/account-settings/account-details/account-details.component.html
index 593b87e29..c8e1e73b0 100644
--- a/client/src/app/account/account-settings/account-details/account-details.component.html
+++ b/client/src/app/account/account-settings/account-details/account-details.component.html
@@ -1,20 +1,23 @@
1<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 1<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
2 2
3<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> 3<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
4 <input 4 <div class="form-group">
5 type="checkbox" id="displayNSFW" 5 <input
6 formControlName="displayNSFW" 6 type="checkbox" id="displayNSFW"
7 > 7 formControlName="displayNSFW"
8 <label for="displayNSFW">Display videos that contain mature or explicit content</label> 8 >
9 <div *ngIf="formErrors['displayNSFW']" class="alert alert-danger"> 9 <label for="displayNSFW"></label>
10 {{ formErrors['displayNSFW'] }} 10 <label for="displayNSFW">Display videos that contain mature or explicit content</label>
11 </div>
12
13 <div class="form-group">
14 <input
15 type="checkbox" id="autoPlayVideo"
16 formControlName="autoPlayVideo"
17 >
18 <label for="autoPlayVideo"></label>
19 <label for="autoPlayVideo">Automatically plays video</label>
11 </div> 20 </div>
12 <br/>
13 <input
14 type="checkbox" id="autoPlayVideo"
15 formControlName="autoPlayVideo"
16 >
17 <label for="autoPlayVideo">Automatically plays video</label>
18 21
19 <input type="submit" value="Save" [disabled]="!form.valid"> 22 <input type="submit" value="Save" [disabled]="!form.valid">
20</form> 23</form>
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.scss b/client/src/app/account/account-settings/account-details/account-details.component.scss
index 1bdb19a38..4e8dfde1d 100644
--- a/client/src/app/account/account-settings/account-details/account-details.component.scss
+++ b/client/src/app/account/account-settings/account-details/account-details.component.scss
@@ -1,10 +1,8 @@
1@import '_variables'; 1@import '_variables';
2@import '_mixins'; 2@import '_mixins';
3 3
4label { 4input[type=checkbox] {
5 font-size: 15px; 5 @include peertube-checkbox(1px);
6 font-weight: $font-regular;
7 margin-left: 5px;
8} 6}
9 7
10input[type=submit] { 8input[type=submit] {