aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-10-12 18:12:39 +0200
committerRigel Kent <sendmemail@rigelk.eu>2018-10-13 11:53:48 +0200
commited638e5325096ef580da20f370ac61c59cd48cf7 (patch)
tree8ad4c1001efb3adc3946a6b6c9a3c1ed1f557995 /client/src/app/shared/users
parent64cc5e8575fda47b281ae20abf0020e27fc8ce7c (diff)
downloadPeerTube-ed638e5325096ef580da20f370ac61c59cd48cf7.tar.gz
PeerTube-ed638e5325096ef580da20f370ac61c59cd48cf7.tar.zst
PeerTube-ed638e5325096ef580da20f370ac61c59cd48cf7.zip
move to boolean switch
Diffstat (limited to 'client/src/app/shared/users')
-rw-r--r--client/src/app/shared/users/user.model.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts
index 240c7aacf..7c840ffa7 100644
--- a/client/src/app/shared/users/user.model.ts
+++ b/client/src/app/shared/users/user.model.ts
@@ -9,7 +9,6 @@ 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'
13 12
14export type UserConstructorHash = { 13export type UserConstructorHash = {
15 id: number, 14 id: number,
@@ -19,7 +18,7 @@ export type UserConstructorHash = {
19 videoQuota?: number, 18 videoQuota?: number,
20 videoQuotaDaily?: number, 19 videoQuotaDaily?: number,
21 nsfwPolicy?: NSFWPolicyType, 20 nsfwPolicy?: NSFWPolicyType,
22 webTorrentPolicy?: WebTorrentPolicyType, 21 webTorrentEnabled?: boolean,
23 autoPlayVideo?: boolean, 22 autoPlayVideo?: boolean,
24 createdAt?: Date, 23 createdAt?: Date,
25 account?: AccountServerModel, 24 account?: AccountServerModel,
@@ -34,7 +33,7 @@ export class User implements UserServerModel {
34 email: string 33 email: string
35 role: UserRole 34 role: UserRole
36 nsfwPolicy: NSFWPolicyType 35 nsfwPolicy: NSFWPolicyType
37 webTorrentPolicy: WebTorrentPolicyType 36 webTorrentEnabled: boolean
38 autoPlayVideo: boolean 37 autoPlayVideo: boolean
39 videoQuota: number 38 videoQuota: number
40 videoQuotaDaily: number 39 videoQuotaDaily: number
@@ -55,7 +54,7 @@ export class User implements UserServerModel {
55 this.videoQuota = hash.videoQuota 54 this.videoQuota = hash.videoQuota
56 this.videoQuotaDaily = hash.videoQuotaDaily 55 this.videoQuotaDaily = hash.videoQuotaDaily
57 this.nsfwPolicy = hash.nsfwPolicy 56 this.nsfwPolicy = hash.nsfwPolicy
58 this.webTorrentPolicy = hash.webTorrentPolicy 57 this.webTorrentEnabled = hash.webTorrentEnabled
59 this.autoPlayVideo = hash.autoPlayVideo 58 this.autoPlayVideo = hash.autoPlayVideo
60 this.createdAt = hash.createdAt 59 this.createdAt = hash.createdAt
61 this.blocked = hash.blocked 60 this.blocked = hash.blocked