Web: Files: moved panels

This commit is contained in:
Nikita Gopienko 2020-03-30 14:56:25 +03:00
parent e9e6032914
commit e000092627
6 changed files with 9 additions and 8 deletions

View File

@ -20,13 +20,10 @@ import {
import { fetchFiles, setAction } from "../../../../../store/files/actions"; import { fetchFiles, setAction } from "../../../../../store/files/actions";
import { default as filesStore } from "../../../../../store/store"; import { default as filesStore } from "../../../../../store/store";
import { EmptyTrashDialog, DeleteDialog } from '../../../../dialogs'; import { EmptyTrashDialog, DeleteDialog } from '../../../../dialogs';
import { SharingPanel, AddGroupsPanel, AddUsersPanel} from "../../../../panels";
import { isCanBeDeleted } from "../../../../../store/files/selectors"; import { isCanBeDeleted } from "../../../../../store/files/selectors";
import SharingPanel from "./panels/SharingPanel";
import AddUsersPanel from "./panels/AddUsersPanel";
import AddGroupPanel from "./panels/AddGroupPanel";
import AccessComboBox from "./";
const { isAdmin } = store.auth.selectors; const { isAdmin } = store.auth.selectors;
const { FilterType, FileAction } = constants; const { FilterType, FileAction } = constants;
@ -565,7 +562,7 @@ const SectionHeaderContent = props => {
accessRight={accessRight} accessRight={accessRight}
/> />
<AddGroupPanel <AddGroupsPanel
onSharingPanelClose={openSharingPanel} onSharingPanelClose={openSharingPanel}
onClose={onShowGroupsPanel} onClose={onShowGroupsPanel}
visible={showAddGroupsPanel} visible={showAddGroupsPanel}

View File

@ -8,7 +8,7 @@ import {
toastr toastr
} from "asc-web-components"; } from "asc-web-components";
import { GroupSelector } from "asc-web-common"; import { GroupSelector } from "asc-web-common";
import { getUsersOfGroups } from "../../../../../../store/files/actions"; import { getUsersOfGroups } from "../../store/files/actions";
import { import {
StyledPanel, StyledPanel,
StyledContent, StyledContent,

View File

@ -4,8 +4,7 @@ import {
Backdrop, Backdrop,
Heading, Heading,
Aside, Aside,
IconButton, IconButton
utils
} from "asc-web-components"; } from "asc-web-components";
import { PeopleSelector } from "asc-web-common"; import { PeopleSelector } from "asc-web-common";
import { import {

View File

@ -0,0 +1,5 @@
import SharingPanel from "./SharingPanel";
import AddUsersPanel from "./AddUsersPanel";
import AddGroupsPanel from "./AddGroupPanel";
export { SharingPanel, AddUsersPanel, AddGroupsPanel }