ui(server): disable file manager upload, due to library issues
This commit is contained in:
parent
ee863fa262
commit
209711c826
4 changed files with 23 additions and 22 deletions
|
@ -1,21 +1,21 @@
|
|||
import { Fragment } from 'react';
|
||||
import MessageBox from '@/components/MessageBox';
|
||||
import { useStoreState } from 'easy-peasy';
|
||||
import tw from 'twin.macro';
|
||||
import { Fragment } from 'react';
|
||||
|
||||
import MessageBox from '@/components/MessageBox';
|
||||
|
||||
type Props = Readonly<{
|
||||
byKey?: string;
|
||||
className?: string;
|
||||
}>;
|
||||
|
||||
const FlashMessageRender = ({ byKey, className }: Props) => {
|
||||
function FlashMessageRender({ byKey, className }: Props) {
|
||||
const flashes = useStoreState(state => state.flashes.items.filter(flash => (byKey ? flash.key === byKey : true)));
|
||||
|
||||
return flashes.length ? (
|
||||
<div className={className}>
|
||||
{flashes.map((flash, index) => (
|
||||
<Fragment key={flash.id || flash.type + flash.message}>
|
||||
{index > 0 && <div css={tw`mt-2`}></div>}
|
||||
{index > 0 && <div className="mt-2" />}
|
||||
<MessageBox type={flash.type} title={flash.title}>
|
||||
{flash.message}
|
||||
</MessageBox>
|
||||
|
@ -23,6 +23,6 @@ const FlashMessageRender = ({ byKey, className }: Props) => {
|
|||
))}
|
||||
</div>
|
||||
) : null;
|
||||
};
|
||||
}
|
||||
|
||||
export default FlashMessageRender;
|
||||
|
|
|
@ -14,9 +14,9 @@ import { ServerError } from '@/components/elements/ScreenBlock';
|
|||
import { Button } from '@/components/elements/button/index';
|
||||
import { ServerContext } from '@/state/server';
|
||||
import useFileManagerSwr from '@/plugins/useFileManagerSwr';
|
||||
import FileManagerStatus from '@/components/server/files/FileManagerStatus';
|
||||
// import FileManagerStatus from '@/components/server/files/FileManagerStatus';
|
||||
import MassActionsBar from '@/components/server/files/MassActionsBar';
|
||||
import UploadButton from '@/components/server/files/UploadButton';
|
||||
// import UploadButton from '@/components/server/files/UploadButton';
|
||||
import ServerContentBlock from '@/components/elements/ServerContentBlock';
|
||||
import { useStoreActions } from '@/state/hooks';
|
||||
import ErrorBoundary from '@/components/elements/ErrorBoundary';
|
||||
|
@ -77,9 +77,9 @@ export default () => {
|
|||
/>
|
||||
<Can action={'file.create'}>
|
||||
<div className={style.manager_actions}>
|
||||
<FileManagerStatus />
|
||||
{/*<FileManagerStatus />*/}
|
||||
<NewDirectoryButton />
|
||||
<UploadButton />
|
||||
{/*<UploadButton />*/}
|
||||
<NavLink to={`/server/${id}/files/new${window.location.hash}`}>
|
||||
<Button>New File</Button>
|
||||
</NavLink>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue