aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/users/user-update-me.model.ts4
-rw-r--r--shared/models/users/user-webtorrent-policy.type.ts1
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 @@
1import { NSFWPolicyType } from '../videos/nsfw-policy.type' 1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2import { WebTorrentPolicyType } from './user-webtorrent-policy.type'
2 3
3export interface UserUpdateMe { 4export 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'