]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix quota precision in users list
authorChocobozzz <me@florianbigard.com>
Mon, 18 Jun 2018 08:50:56 +0000 (10:50 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 18 Jun 2018 08:50:56 +0000 (10:50 +0200)
client/src/app/+admin/users/shared/user.service.ts

index cd810d21680a1e1c2ab6b6279c960f0ab27208f4..1af1e4ef2ce82ba9f07045d907840e69bceb617d 100644 (file)
@@ -64,7 +64,7 @@ export class UserService {
     if (user.videoQuota === -1) {
       videoQuota = this.i18n('Unlimited')
     } else {
-      videoQuota = this.bytesPipe.transform(user.videoQuota)
+      videoQuota = this.bytesPipe.transform(user.videoQuota, 0)
     }
 
     return Object.assign(user, {