diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-06 21:21:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-06 21:21:03 +0200 |
commit | af5e743b01f20f24d0c25e786d57f557b21f3a24 (patch) | |
tree | 5186d587135f13f00687f8ed6cd8504cdd35799f /client/src/app/account/account-details/account-details.component.html | |
parent | 92fb909c9b4a92a00b0d0da7629e6fb003de281b (diff) | |
download | PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.tar.gz PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.tar.zst PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.zip |
Client: add ability for user to change nsfw settings
Diffstat (limited to 'client/src/app/account/account-details/account-details.component.html')
-rw-r--r-- | client/src/app/account/account-details/account-details.component.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/client/src/app/account/account-details/account-details.component.html b/client/src/app/account/account-details/account-details.component.html new file mode 100644 index 000000000..24b0750d2 --- /dev/null +++ b/client/src/app/account/account-details/account-details.component.html | |||
@@ -0,0 +1,16 @@ | |||
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | ||
2 | |||
3 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> | ||
4 | <div class="form-group"> | ||
5 | <label for="displayNSFW">Display NSFW videos</label> | ||
6 | <input | ||
7 | type="checkbox" id="displayNSFW" | ||
8 | formControlName="displayNSFW" | ||
9 | > | ||
10 | <div *ngIf="formErrors['displayNSFW']" class="alert alert-danger"> | ||
11 | {{ formErrors['displayNSFW'] }} | ||
12 | </div> | ||
13 | </div> | ||
14 | |||
15 | <input type="submit" value="Update" class="btn btn-default" [disabled]="!form.valid"> | ||
16 | </form> | ||