]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/models/account/user.ts
Enh #106 : Add an autoPlayVideo user attribute (#159)
authorAndréas Livet <andreas.livet@gmail.com>
Tue, 19 Dec 2017 09:45:49 +0000 (10:45 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Dec 2017 09:45:49 +0000 (10:45 +0100)
commit7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd
tree56116e7e9f8467b78ed6dfc81827288915d31c8c
parent228077efd73485a2832bb6211c9fa923158c2112
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
18 files changed:
client/src/app/account/account-settings/account-details/account-details.component.html
client/src/app/account/account-settings/account-details/account-details.component.ts
client/src/app/account/account-settings/account-settings.component.html
client/src/app/core/auth/auth-user.model.ts
client/src/app/core/auth/auth.service.ts
client/src/app/shared/users/user.model.ts
client/src/app/videos/+video-watch/video-watch.component.ts
server/controllers/api/users.ts
server/helpers/custom-validators/users.ts
server/initializers/constants.ts
server/initializers/migrations/0130-user-autoplay-video.ts [new file with mode: 0644]
server/middlewares/validators/users.ts
server/models/account/user.ts
server/tests/api/check-params/users.ts
server/tests/api/users.ts
server/tests/utils/users.ts
shared/models/users/user-update-me.model.ts
shared/models/users/user.model.ts