From 52a354ab7af7bd29ca0128fa7c501ea08aa5a343 Mon Sep 17 00:00:00 2001 From: Ms Kimsible <1877318+kimsible@users.noreply.github.com> Date: Thu, 26 Aug 2021 08:40:18 +0200 Subject: Fix user quota alerts always displayed (#4354) * Fix user quota alerts display on upload page * Fix border-radius upload messages alerts Co-authored-by: Ms Kimsible --- client/src/app/core/users/user.model.ts | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index 5e1fb1c8d..7467519c4 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts @@ -137,26 +137,4 @@ export class User implements UserServerModel { isAutoBlocked () { return this.role === UserRole.USER && this.adminFlags !== UserAdminFlag.BYPASS_VIDEO_AUTO_BLACKLIST } - - hasNoQuotaLeft () { - // unlimited videoQuota - if (this.videoQuota === -1) return false - - // no more videoQuota - if (!this.videoQuotaUsed) return true - - // videoQuota left lower than 10% - return this.videoQuotaUsed > this.videoQuota * 0.9 - } - - hasNoQuotaLeftDaily () { - // unlimited videoQuotaDaily - if (this.videoQuotaDaily === -1) return false - - // no more videoQuotaDaily - if (!this.videoQuotaUsedDaily) return true - - // videoQuotaDaily left lower than 10% - return this.videoQuotaUsedDaily > this.videoQuotaDaily * 0.9 - } } -- cgit v1.2.3