Web: Files: fixed remove third-party providers
This commit is contained in:
parent
6ca82e9450
commit
3c4f71c355
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user