🐛 Fix antivirus status for shared view (#745)
🐛 Fix antivirus status for shared view
This commit is contained in:
@@ -8,7 +8,7 @@ import Login from '@views/login/login';
|
||||
import Logout from '@views/login/logout';
|
||||
import Error from '@views/error';
|
||||
import Join from '@views/join';
|
||||
import PublicMainView from '@views/client/body/drive/shared';
|
||||
import PublicMainView from '@views/client/body/drive/shared-view';
|
||||
import Observable from '../../../deprecated/Observable/Observable';
|
||||
import { getWorkspacesByCompany } from '@features/workspaces/state/workspace-list';
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import { lazy, Suspense } from 'react';
|
||||
const Shared = lazy(() => import('@views/client/body/drive/shared'));
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<Suspense fallback={<></>}>
|
||||
<Shared />
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
@@ -3,6 +3,7 @@ import { useEffect, useState } from 'react';
|
||||
import MenusBodyLayer from '@components/menus/menus-body-layer';
|
||||
import Api from '@features/global/framework/api-service';
|
||||
import Languages from '@features/global/services/languages-service';
|
||||
import { useFeatureToggles } from '@components/locked-features-components/feature-toggles-hooks';
|
||||
import { addApiUrlIfNeeded } from '@features/global/utils/URLUtils';
|
||||
import RouterService from '@features/router/services/router-service';
|
||||
import Drive from '@views/client/body/drive';
|
||||
@@ -28,6 +29,7 @@ import LocalStorage from 'app/features/global/framework/local-storage-service';
|
||||
|
||||
export default () => {
|
||||
const companyId = useRouterCompany();
|
||||
const { FeatureToggles, activeFeatureNames } = useFeatureToggles();
|
||||
|
||||
//Create a different local storage for shared view
|
||||
useEffect(() => {
|
||||
@@ -61,6 +63,8 @@ export default () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<FeatureToggles features={activeFeatureNames}>
|
||||
<>
|
||||
<div className="flex flex-col h-full w-full dark:bg-zinc-900">
|
||||
<div className="flex flex-row items-center justify-center bg-blue-500 px-4 py-2">
|
||||
<div className="grow flex flex-row items-center">
|
||||
@@ -89,6 +93,8 @@ export default () => {
|
||||
<UploadsViewer />
|
||||
<CreateModalWithUploadZones initialParentId={documentId} />
|
||||
</div>
|
||||
</>
|
||||
</FeatureToggles>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user