diff --git a/web/ASC.Web.Editor/next-i18next.config.js b/web/ASC.Web.Editor/next-i18next.config.js index 05ee6ecaad..f6f09bf0dc 100644 --- a/web/ASC.Web.Editor/next-i18next.config.js +++ b/web/ASC.Web.Editor/next-i18next.config.js @@ -7,5 +7,6 @@ module.exports = { i18n: { defaultLocale: "en", locales: availableLocales, + defaultNS: "Editor", }, }; diff --git a/web/ASC.Web.Editor/pages/index.js b/web/ASC.Web.Editor/pages/index.js index dd71ea526c..d762ad5c11 100644 --- a/web/ASC.Web.Editor/pages/index.js +++ b/web/ASC.Web.Editor/pages/index.js @@ -11,10 +11,6 @@ import { homepage } from "../package.json"; import throttle from "lodash/throttle"; import Loader from "@appserver/components/loader"; -// import Toast from "@appserver/components/toast"; -// import toastr from "../../../../../ASC.Web.Client/src/helpers/toastr"; -// import { toast } from "react-toastify"; - import { getDocServiceUrl, getFileInfo, @@ -33,8 +29,11 @@ import { getUser } from "@appserver/common/api/people"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import { useTranslation } from "next-i18next"; -//import { getDefaultFileName } from "@appserver/files/src/helpers/utils"; -import SharingDialog from "@appserver/files/src/components/panels/SharingDialog"; +import dynamic from "next/dynamic"; + +// const SharingDialog = dynamic(() => import("files/SharingDialog"), { +// ssr: false, +// }); const LoaderComponent = ( { @@ -635,32 +634,45 @@ export default function Home({ //toastr.error(error.message, null, 0, true); } }; + const onCancel = () => { + setIsVisible(false); + }; return ( -
+ <> {documentTitle} - {needLoader ? ( - LoaderComponent - ) : ( - <> -
- {!isLoaded && LoaderComponent} -