aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-10-05 15:17:34 +0200
committerRigel Kent <sendmemail@rigelk.eu>2018-10-13 11:53:42 +0200
commit64cc5e8575fda47b281ae20abf0020e27fc8ce7c (patch)
treec3ec40b03d3fdc5d3beee9ff089384c894d9efe9 /client/src/app/shared
parent0e5ff97f6fdf9a4cebe5a15f5a390380465803ad (diff)
downloadPeerTube-64cc5e8575fda47b281ae20abf0020e27fc8ce7c.tar.gz
PeerTube-64cc5e8575fda47b281ae20abf0020e27fc8ce7c.tar.zst
PeerTube-64cc5e8575fda47b281ae20abf0020e27fc8ce7c.zip
add webtorrent opt-out settings
- add a key in localstorage to remember the opt-out - add a user setting
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/users/user.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts
index 877f1bf3a..240c7aacf 100644
--- a/client/src/app/shared/users/user.model.ts
+++ b/client/src/app/shared/users/user.model.ts
@@ -9,6 +9,7 @@ import {
9import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' 9import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type'
10import { Account } from '@app/shared/account/account.model' 10import { Account } from '@app/shared/account/account.model'
11import { Avatar } from '../../../../../shared/models/avatars/avatar.model' 11import { Avatar } from '../../../../../shared/models/avatars/avatar.model'
12import { WebTorrentPolicyType } from '../../../../../shared/models/users/user-webtorrent-policy.type'
12 13
13export type UserConstructorHash = { 14export type UserConstructorHash = {
14 id: number, 15 id: number,
@@ -18,6 +19,7 @@ export type UserConstructorHash = {
18 videoQuota?: number, 19 videoQuota?: number,
19 videoQuotaDaily?: number, 20 videoQuotaDaily?: number,
20 nsfwPolicy?: NSFWPolicyType, 21 nsfwPolicy?: NSFWPolicyType,
22 webTorrentPolicy?: WebTorrentPolicyType,
21 autoPlayVideo?: boolean, 23 autoPlayVideo?: boolean,
22 createdAt?: Date, 24 createdAt?: Date,
23 account?: AccountServerModel, 25 account?: AccountServerModel,
@@ -32,6 +34,7 @@ export class User implements UserServerModel {
32 email: string 34 email: string
33 role: UserRole 35 role: UserRole
34 nsfwPolicy: NSFWPolicyType 36 nsfwPolicy: NSFWPolicyType
37 webTorrentPolicy: WebTorrentPolicyType
35 autoPlayVideo: boolean 38 autoPlayVideo: boolean
36 videoQuota: number 39 videoQuota: number
37 videoQuotaDaily: number 40 videoQuotaDaily: number
@@ -52,6 +55,7 @@ export class User implements UserServerModel {
52 this.videoQuota = hash.videoQuota 55 this.videoQuota = hash.videoQuota
53 this.videoQuotaDaily = hash.videoQuotaDaily 56 this.videoQuotaDaily = hash.videoQuotaDaily
54 this.nsfwPolicy = hash.nsfwPolicy 57 this.nsfwPolicy = hash.nsfwPolicy
58 this.webTorrentPolicy = hash.webTorrentPolicy
55 this.autoPlayVideo = hash.autoPlayVideo 59 this.autoPlayVideo = hash.autoPlayVideo
56 this.createdAt = hash.createdAt 60 this.createdAt = hash.createdAt
57 this.blocked = hash.blocked 61 this.blocked = hash.blocked