Client: Pages: AccountsHome: open change owner dialog by route
This commit is contained in:
parent
16ba6678ad
commit
efbf626f70
@ -44,6 +44,8 @@ const PureHome = ({
|
||||
withPaging,
|
||||
onClickBack,
|
||||
setPortalTariff,
|
||||
|
||||
setChangeOwnerDialogVisible,
|
||||
}) => {
|
||||
const { location } = history;
|
||||
const { pathname } = location;
|
||||
@ -73,6 +75,9 @@ const PureHome = ({
|
||||
setIsLoading(false);
|
||||
setIsRefresh(false);
|
||||
});
|
||||
|
||||
if (location?.state?.openChangeOwnerDialog)
|
||||
setChangeOwnerDialogVisible(true);
|
||||
}
|
||||
}, [pathname, location, setSelectedNode]);
|
||||
|
||||
@ -140,24 +145,15 @@ export default inject(
|
||||
const { settingsStore, currentTariffStatusStore } = auth;
|
||||
const { setPortalTariff } = currentTariffStatusStore;
|
||||
const { showCatalog, withPaging } = settingsStore;
|
||||
const {
|
||||
usersStore,
|
||||
selectedGroupStore,
|
||||
loadingStore,
|
||||
viewAs,
|
||||
} = peopleStore;
|
||||
const { usersStore, selectedGroupStore, loadingStore, viewAs } =
|
||||
peopleStore;
|
||||
const { getUsersList } = usersStore;
|
||||
const { selectedGroup } = selectedGroupStore;
|
||||
const { setSelectedNode } = treeFoldersStore;
|
||||
const { onClickBack } = filesActionsStore;
|
||||
const {
|
||||
isLoading,
|
||||
setIsLoading,
|
||||
setIsRefresh,
|
||||
firstLoad,
|
||||
setFirstLoad,
|
||||
} = loadingStore;
|
||||
|
||||
const { isLoading, setIsLoading, setIsRefresh, firstLoad, setFirstLoad } =
|
||||
loadingStore;
|
||||
const { setChangeOwnerDialogVisible } = peopleStore.dialogStore;
|
||||
return {
|
||||
setPortalTariff,
|
||||
isAdmin: auth.isAdmin,
|
||||
@ -176,6 +172,7 @@ export default inject(
|
||||
snackbarExist: auth.settingsStore.snackbarExist,
|
||||
withPaging,
|
||||
onClickBack,
|
||||
setChangeOwnerDialogVisible,
|
||||
};
|
||||
}
|
||||
)(observer(withRouter(Home)));
|
||||
|
Loading…
Reference in New Issue
Block a user