From ce406f6fd90842ea550c01e679a952744008e524 Mon Sep 17 00:00:00 2001 From: Moe Date: Wed, 1 Jun 2022 13:11:01 -0700 Subject: [PATCH] Hide Max Storage Amount notice for Sub-Account --- web/assets/js/bs5.startup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/assets/js/bs5.startup.js b/web/assets/js/bs5.startup.js index cf4e2cca..af8c34bf 100644 --- a/web/assets/js/bs5.startup.js +++ b/web/assets/js/bs5.startup.js @@ -102,14 +102,14 @@ function drawAddStorageIndicators(){ } function showLoginNotices(){ $.each([ - { + !$user.details.sub ? { isValid: !$user.details.size || parseInt($user.details.size) < 20000, PNotify: { type:'warning', title: lang['Max Storage Amount'], text: lang.setMaxStorageAmountText, } - } + } : {} ],function(n,notice){ if(notice.isValid){ new PNotify(notice.PNotify)