aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/users
diff options
context:
space:
mode:
authorAndréas Livet <andreas.livet@gmail.com>2017-12-19 10:45:49 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 10:45:49 +0100
commit7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd (patch)
tree56116e7e9f8467b78ed6dfc81827288915d31c8c /shared/models/users
parent228077efd73485a2832bb6211c9fa923158c2112 (diff)
downloadPeerTube-7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd.tar.gz
PeerTube-7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd.tar.zst
PeerTube-7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd.zip
Enh #106 : Add an autoPlayVideo user attribute (#159)
Warning : I was not able to run the tests on my machine. It uses a different approach to handle databse connexion and didn't find where to configure it... - create a migration file to add a boolean column in user table - add autoPlayVideo attribute everywhere it is needed (both on client and server side) - add tests - add a way to configure this attribute in account-settings - use the attribute in video-watch component to actually autoplay or not the video
Diffstat (limited to 'shared/models/users')
-rw-r--r--shared/models/users/user-update-me.model.ts1
-rw-r--r--shared/models/users/user.model.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts
index 0ee41a79b..83417a7bd 100644
--- a/shared/models/users/user-update-me.model.ts
+++ b/shared/models/users/user-update-me.model.ts
@@ -1,5 +1,6 @@
1export interface UserUpdateMe { 1export interface UserUpdateMe {
2 displayNSFW?: boolean 2 displayNSFW?: boolean
3 autoPlayVideo?: boolean
3 email?: string 4 email?: string
4 password?: string 5 password?: string
5} 6}
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 4b17881e5..f2b43d371 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -7,6 +7,7 @@ export interface User {
7 username: string 7 username: string
8 email: string 8 email: string
9 displayNSFW: boolean 9 displayNSFW: boolean
10 autoPlayVideo: boolean
10 role: UserRole 11 role: UserRole
11 videoQuota: number 12 videoQuota: number
12 createdAt: Date 13 createdAt: Date