Web: Files: fixed remove third-party providers

This commit is contained in:
Nikita Gopienko 2021-03-15 16:49:21 +03:00
parent 6ca82e9450
commit 3c4f71c355
2 changed files with 16 additions and 6 deletions

View File

@ -85,8 +85,18 @@ const DeleteThirdPartyDialog = withTranslation("DeleteThirdPartyDialog")(
);
export default inject(
({ filesStore, thirdParty, treeFoldersStore, selectedFolderStore }) => {
const { providers, setThirdPartyProviders, deleteThirdParty } = thirdParty;
({
filesStore,
settingsStore,
dialogsStore,
treeFoldersStore,
selectedFolderStore,
}) => {
const {
providers,
setThirdPartyProviders,
deleteThirdParty,
} = settingsStore.thirdPartyStore;
const { fetchFiles } = filesStore;
const {

View File

@ -85,7 +85,7 @@ const SimpleFilesRow = (props) => {
setSharingPanelVisible,
setChangeOwnerPanelVisible,
showDeleteThirdPartyDialog,
setDeleteThirdPartyDialogVisible,
setRemoveItem,
setMoveToPanelVisible,
setCopyPanelVisible,
@ -252,7 +252,7 @@ const SimpleFilesRow = (props) => {
if (isThirdPartyFolder) {
const splitItem = id.split("-");
setRemoveItem({ id: splitItem[splitItem.length - 1], title });
showDeleteThirdPartyDialog(true);
setDeleteThirdPartyDialogVisible(true);
return;
}
@ -546,7 +546,7 @@ export default inject(
setSharingPanelVisible,
setChangeOwnerPanelVisible,
setRemoveItem,
showDeleteThirdPartyDialog,
setDeleteThirdPartyDialogVisible,
setMoveToPanelVisible,
setCopyPanelVisible,
setShareItem,
@ -611,7 +611,7 @@ export default inject(
setShareItem,
setChangeOwnerPanelVisible,
setRemoveItem,
showDeleteThirdPartyDialog,
setDeleteThirdPartyDialogVisible,
setMoveToPanelVisible,
setCopyPanelVisible,
openDocEditor,