diff --git a/packages/client/src/components/MainBar/Bar.js b/packages/client/src/components/MainBar/Bar.js index 3780497521..954a1149c9 100644 --- a/packages/client/src/components/MainBar/Bar.js +++ b/packages/client/src/components/MainBar/Bar.js @@ -69,7 +69,7 @@ const Bar = (props) => { showRoomQuotaBar, showStorageQuotaBar, - showUserQuotaBar, + showAlmostReachedUserTariffLimit, currentColorScheme, @@ -283,7 +283,7 @@ const Bar = (props) => { }; } if ( - showUserQuotaBar && + showAlmostReachedUserTariffLimit && showStorageQuotaBar && barVisible.storageAndUserQuota ) { @@ -316,7 +316,7 @@ const Bar = (props) => { }; } - if (showUserQuotaBar && barVisible.userQuota) { + if (showAlmostReachedUserTariffLimit && barVisible.userQuota) { return { type: QuotaBarTypes.UserQuota, maxValue: maxCountManagersByQuota, @@ -402,7 +402,7 @@ export default inject( showRoomQuotaBar, showStorageQuotaBar, - showUserQuotaBar, + showAlmostReachedUserTariffLimit, showUserPersonalQuotaBar, tenantCustomQuota, showTenantCustomQuotaBar, @@ -431,7 +431,7 @@ export default inject( showRoomQuotaBar, showStorageQuotaBar, - showUserQuotaBar, + showAlmostReachedUserTariffLimit, currentColorScheme, setMainBarVisible, diff --git a/packages/shared/store/CurrentQuotaStore.ts b/packages/shared/store/CurrentQuotaStore.ts index 52d09df6c0..735c003cdc 100644 --- a/packages/shared/store/CurrentQuotaStore.ts +++ b/packages/shared/store/CurrentQuotaStore.ts @@ -271,7 +271,7 @@ class CurrentQuotasStore { ); } - get showUserQuotaBar() { + get showAlmostReachedUserTariffLimit() { return ( this.addedManagersCount > 1 && this.maxCountManagersByQuota - this.addedManagersCount <=