]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/users/user.model.ts
Add auth plugin info in users list
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / users / user.model.ts
index a37cae749c1e64d596111c4a680651e1cb09ed8e..3f6743befbd901435f3da560bc038973c931d22e 100644 (file)
@@ -51,6 +51,11 @@ export class User implements UserServerModel {
   videoQuotaDaily: number
   videoQuotaUsed?: number
   videoQuotaUsedDaily?: number
+  videosCount?: number
+  videoAbusesCount?: number
+  videoAbusesAcceptedCount?: number
+  videoAbusesCreatedCount?: number
+  videoCommentsCount?: number
 
   theme: string
 
@@ -64,6 +69,8 @@ export class User implements UserServerModel {
   noInstanceConfigWarningModal: boolean
   noWelcomeModal: boolean
 
+  pluginAuth: string | null
+
   createdAt: Date
 
   constructor (hash: Partial<UserServerModel>) {
@@ -79,6 +86,11 @@ export class User implements UserServerModel {
     this.videoQuotaDaily = hash.videoQuotaDaily
     this.videoQuotaUsed = hash.videoQuotaUsed
     this.videoQuotaUsedDaily = hash.videoQuotaUsedDaily
+    this.videosCount = hash.videosCount
+    this.videoAbusesCount = hash.videoAbusesCount
+    this.videoAbusesAcceptedCount = hash.videoAbusesAcceptedCount
+    this.videoAbusesCreatedCount = hash.videoAbusesCreatedCount
+    this.videoCommentsCount = hash.videoCommentsCount
 
     this.nsfwPolicy = hash.nsfwPolicy
     this.webTorrentEnabled = hash.webTorrentEnabled
@@ -102,6 +114,8 @@ export class User implements UserServerModel {
 
     this.createdAt = hash.createdAt
 
+    this.pluginAuth = hash.pluginAuth
+
     if (hash.account !== undefined) {
       this.account = new Account(hash.account)
     }