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

<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
  <div class="form-group">
    <label for="displayNSFW">Display NSFW videos</label>
    <input
      type="checkbox" id="displayNSFW"
      formControlName="displayNSFW"
    >
    <div *ngIf="formErrors['displayNSFW']" class="alert alert-danger">
      {{ formErrors['displayNSFW'] }}
    </div>
  </div>

  <input type="submit" value="Update" class="btn btn-default" [disabled]="!form.valid">
</form>