diff --git a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/new-workspace-setting-detail/workspace-quota.tsx b/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/new-workspace-setting-detail/workspace-quota.tsx index bca196db92384..b9d9079ca4f06 100644 --- a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/new-workspace-setting-detail/workspace-quota.tsx +++ b/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/new-workspace-setting-detail/workspace-quota.tsx @@ -11,6 +11,15 @@ import * as styles from './style.css'; export const WorkspaceQuotaPanel = () => { const t = useI18n(); + const workspacePermissionService = useService( + WorkspacePermissionService + ).permission; + const isTeam = useLiveData(workspacePermissionService.isTeam$); + + if (!isTeam) { + return null; + } + return ( { export const StorageProgress = () => { const t = useI18n(); - const workspacePermissionService = useService( - WorkspacePermissionService - ).permission; + const workspaceQuotaService = useService(WorkspaceQuotaService).quota; - const isTeam = useLiveData(workspacePermissionService.isTeam$); + const isLoading = useLiveData(workspaceQuotaService.isRevalidating$); const usedFormatted = useLiveData(workspaceQuotaService.usedFormatted$); const maxFormatted = useLiveData(workspaceQuotaService.maxFormatted$); @@ -49,10 +56,6 @@ export const StorageProgress = () => { return ; } - if (!isTeam) { - return null; - } - return (