Web: Fixed after merge.
This commit is contained in:
parent
683c628c28
commit
5d73d49ad4
@ -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));
|
||||
|
@ -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) => {
|
||||
</Text>
|
||||
<SpaceQuota
|
||||
type="user"
|
||||
item={selection}
|
||||
item={infoPanelSelection}
|
||||
className="type-combobox"
|
||||
onSuccess={onSuccess}
|
||||
onAbort={onAbort}
|
||||
|
@ -78,7 +78,6 @@ const DiskSpaceUsedComponent = (props) => {
|
||||
onSaveClick={onSaveClick}
|
||||
onCloseClick={onCloseClick}
|
||||
onSetQuotaBytesSize={onSetQuotaBytesSize}
|
||||
isError={isError}
|
||||
isDiskSpace
|
||||
/>
|
||||
<StyledMainTitle fontSize="16px" fontWeight={700}>
|
||||
|
Loading…
Reference in New Issue
Block a user