Web: Files: fixed tree menu

This commit is contained in:
Nikita Gopienko 2021-02-25 18:03:54 +03:00
parent 8b962cd88d
commit 933a1aec48
2 changed files with 7 additions and 6 deletions

View File

@ -85,7 +85,7 @@ class TreeFolders extends React.Component {
iconUrl = "images/catalog.private.react.svg";
break;
case FolderType.TRASH:
iconUrl = "static/images/catalog.trash.react.svg";
iconUrl = "images/catalog.trash.react.svg";
break;
default:
break;

View File

@ -1,11 +1,12 @@
import { makeObservable, action, observable, computed } from "mobx";
import { store, utils } from "@appserver/common/src";
import store from "studio/store";
import { utils } from "@appserver/common/src";
import filesStore from "./FilesStore";
import treeFoldersStore from "./TreeFoldersStore";
import config from "../../package.json";
const { authStore } = store;
const { isAdmin } = authStore;
const { auth } = store;
const { isAdmin } = auth;
class InitFilesStore {
isLoaded = false;
@ -87,14 +88,14 @@ class InitFilesStore {
}
initFiles = () => {
const isAuthenticated = authStore.isAuthenticated;
const isAuthenticated = auth.isAuthenticated;
const {
getPortalCultures,
isDesktopClient,
getIsEncryptionSupport,
getEncryptionKeys,
setModuleInfo,
} = authStore.settingsStore;
} = auth.settingsStore;
const homepage = "/products/files"; //TODO: add homepage to config?
setModuleInfo(homepage, "e67be73d-f9ae-4ce1-8fec-1880cb518cb4");