aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-settings/account-details/account-details.component.html
blob: bc18b39b4023e6c64f2edb4cb220701b512e7ae6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<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>

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