Web: Files: SharingPanel: delete useless
This commit is contained in:
parent
8381b3e9c6
commit
b50b2c3c6f
@ -30,7 +30,6 @@ import { I18nextProvider } from "react-i18next";
|
|||||||
import { isMobile, isMobileOnly } from "react-device-detect";
|
import { isMobile, isMobileOnly } from "react-device-detect";
|
||||||
import Loaders from "@appserver/common/components/Loaders";
|
import Loaders from "@appserver/common/components/Loaders";
|
||||||
import withLoader from "../../../HOCs/withLoader";
|
import withLoader from "../../../HOCs/withLoader";
|
||||||
import ModalDialogContainer from "../../dialogs/ModalDialogContainer";
|
|
||||||
import ModalDialog from "@appserver/components/modal-dialog";
|
import ModalDialog from "@appserver/components/modal-dialog";
|
||||||
import EmbeddingBody from "../EmbeddingPanel/EmbeddingBody";
|
import EmbeddingBody from "../EmbeddingPanel/EmbeddingBody";
|
||||||
|
|
||||||
@ -111,29 +110,8 @@ class SharingPanelComponent extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onSaveClick = () => {
|
onSaveClick = () => {
|
||||||
const {
|
const { baseShareData, shareDataItems, filesOwnerId } = this.state;
|
||||||
baseShareData,
|
const { selection, isFolderActions } = this.props;
|
||||||
isNotifyUsers,
|
|
||||||
message,
|
|
||||||
shareDataItems,
|
|
||||||
filesOwnerId,
|
|
||||||
} = this.state;
|
|
||||||
const {
|
|
||||||
selection,
|
|
||||||
setIsLoading,
|
|
||||||
isPrivacy,
|
|
||||||
replaceFileStream,
|
|
||||||
t,
|
|
||||||
uploadPanelVisible,
|
|
||||||
updateUploadedItem,
|
|
||||||
uploadSelection,
|
|
||||||
isDesktop,
|
|
||||||
setEncryptionAccess,
|
|
||||||
setShareFiles,
|
|
||||||
setIsFolderActions,
|
|
||||||
onSuccess,
|
|
||||||
isFolderActions,
|
|
||||||
} = this.props;
|
|
||||||
|
|
||||||
let folderIds = [];
|
let folderIds = [];
|
||||||
let fileIds = [];
|
let fileIds = [];
|
||||||
@ -210,7 +188,6 @@ class SharingPanelComponent extends React.Component {
|
|||||||
setShareFiles,
|
setShareFiles,
|
||||||
onSuccess,
|
onSuccess,
|
||||||
setIsFolderActions,
|
setIsFolderActions,
|
||||||
setIsLoading,
|
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
this.onClose();
|
this.onClose();
|
||||||
@ -224,7 +201,7 @@ class SharingPanelComponent extends React.Component {
|
|||||||
externalAccess,
|
externalAccess,
|
||||||
ownerId
|
ownerId
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then(() => {
|
||||||
if (!ownerId) {
|
if (!ownerId) {
|
||||||
this.updateRowData(selection);
|
this.updateRowData(selection);
|
||||||
}
|
}
|
||||||
@ -263,7 +240,6 @@ class SharingPanelComponent extends React.Component {
|
|||||||
.catch((err) => toastr.error(err))
|
.catch((err) => toastr.error(err))
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setIsFolderActions(false);
|
setIsFolderActions(false);
|
||||||
setIsLoading(false);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user