aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-settings/account-details/account-details.component.html
blob: 593b87e295cb710e2eadf7c56ecaded1e3af44cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>

<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
  <input
    type="checkbox" id="displayNSFW"
    formControlName="displayNSFW"
  >
  <label for="displayNSFW">Display videos that contain mature or explicit content</label>
  <div *ngIf="formErrors['displayNSFW']" class="alert alert-danger">
    {{ formErrors['displayNSFW'] }}
  </div>
  <br/>
  <input
    type="checkbox" id="autoPlayVideo"
    formControlName="autoPlayVideo"
  >
  <label for="autoPlayVideo">Automatically plays video</label>

  <input type="submit" value="Save" [disabled]="!form.valid">
</form>