diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-05 15:17:34 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-13 11:53:42 +0200 |
commit | 64cc5e8575fda47b281ae20abf0020e27fc8ce7c (patch) | |
tree | c3ec40b03d3fdc5d3beee9ff089384c894d9efe9 /shared/models | |
parent | 0e5ff97f6fdf9a4cebe5a15f5a390380465803ad (diff) | |
download | PeerTube-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 'shared/models')
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 4 | ||||
-rw-r--r-- | shared/models/users/user-webtorrent-policy.type.ts | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts index bbffe1487..81790377e 100644 --- a/shared/models/users/user-update-me.model.ts +++ b/shared/models/users/user-update-me.model.ts | |||
@@ -1,9 +1,11 @@ | |||
1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
2 | import { WebTorrentPolicyType } from './user-webtorrent-policy.type' | ||
2 | 3 | ||
3 | export interface UserUpdateMe { | 4 | export interface UserUpdateMe { |
4 | displayName?: string | 5 | displayName?: string |
5 | description?: string | 6 | description?: string |
6 | nsfwPolicy?: NSFWPolicyType | 7 | nsfwPolicy?: NSFWPolicyType, |
8 | webTorrentPolicy?: WebTorrentPolicyType, | ||
7 | autoPlayVideo?: boolean | 9 | autoPlayVideo?: boolean |
8 | email?: string | 10 | email?: string |
9 | currentPassword?: string | 11 | currentPassword?: string |
diff --git a/shared/models/users/user-webtorrent-policy.type.ts b/shared/models/users/user-webtorrent-policy.type.ts new file mode 100644 index 000000000..e293f761d --- /dev/null +++ b/shared/models/users/user-webtorrent-policy.type.ts | |||
@@ -0,0 +1 @@ | |||
export type WebTorrentPolicyType = 'enable' | 'disable' | 'disable_on_mobile' | |||