diff --git a/packages/client/src/components/GlobalEvents/ChangeQuotaEvent.js b/packages/client/src/components/GlobalEvents/ChangeQuotaEvent.js index bca97d6d35..63a92feb5c 100644 --- a/packages/client/src/components/GlobalEvents/ChangeQuotaEvent.js +++ b/packages/client/src/components/GlobalEvents/ChangeQuotaEvent.js @@ -23,7 +23,7 @@ const ChangeQuotaEvent = (props) => { calculateSelection, needResetSelection, getPeopleListItem, - setSelection, + setInfoPanelSelection, } = props; const { t } = useTranslation("Common"); const [isLoading, setIsLoading] = useState(false); @@ -60,9 +60,9 @@ const ChangeQuotaEvent = (props) => { if (type === "user") { const user = getPeopleListItem(items[0]); - setSelection(user); + setInfoPanelSelection(user); } else { - setSelection(calculateSelection()); + setInfoPanelSelection(calculateSelection()); } } } catch (e) { @@ -114,7 +114,7 @@ export default inject(({ peopleStore, filesStore, auth }, { type }) => { const { selection: infoPanelSelection, calculateSelection, - setSelection, + setInfoPanelSelection, } = infoPanelStore; const initialSize = type === "user" ? defaultUsersQuota : defaultRoomsQuota; @@ -131,6 +131,6 @@ export default inject(({ peopleStore, filesStore, auth }, { type }) => { calculateSelection, getPeopleListItem, needResetSelection, - setSelection, + setInfoPanelSelection, }; })(observer(ChangeQuotaEvent)); diff --git a/packages/client/src/pages/Home/InfoPanel/Body/views/Accounts/index.js b/packages/client/src/pages/Home/InfoPanel/Body/views/Accounts/index.js index c61a80830c..dd70973375 100644 --- a/packages/client/src/pages/Home/InfoPanel/Body/views/Accounts/index.js +++ b/packages/client/src/pages/Home/InfoPanel/Body/views/Accounts/index.js @@ -13,17 +13,18 @@ import { StyledAccountContent } from "../../styles/accounts"; const Accounts = (props) => { const { - t, + t, infoPanelSelection, - isOwner, - isAdmin, - changeUserType, - canChangeUserType, + isOwner, + isAdmin, + changeUserType, + canChangeUserType, setInfoPanelSelection, - getPeopleListItem, + getPeopleListItem, + + showStorageInfo, + } = props; - showStorageInfo, -}) => { const [statusLabel, setStatusLabel] = React.useState(""); const [isLoading, setIsLoading] = React.useState(false); @@ -232,7 +233,7 @@ const Accounts = (props) => { { onSaveClick={onSaveClick} onCloseClick={onCloseClick} onSetQuotaBytesSize={onSetQuotaBytesSize} - isError={isError} isDiskSpace />