🐛do not display empty menu for "shared_with_me" (#346)
This commit is contained in:
@@ -349,18 +349,20 @@ export default memo(
|
||||
{formatBytes(item?.size || 0)} {Languages.t('scenes.app.drive.used')}
|
||||
</BaseSmall>
|
||||
)}
|
||||
<Menu menu={() => onBuildContextMenu(details)}>
|
||||
{' '}
|
||||
<Button theme="secondary" className="ml-4 flex flex-row items-center">
|
||||
<span>
|
||||
{selectedCount > 1
|
||||
? `${selectedCount} items`
|
||||
: Languages.t('scenes.app.drive.context_menu')}{' '}
|
||||
</span>
|
||||
{viewId !== 'shared_with_me' && (
|
||||
<Menu menu={() => onBuildContextMenu(details)}>
|
||||
{' '}
|
||||
<Button theme="secondary" className="ml-4 flex flex-row items-center">
|
||||
<span>
|
||||
{selectedCount > 1
|
||||
? `${selectedCount} items`
|
||||
: Languages.t('scenes.app.drive.context_menu')}{' '}
|
||||
</span>
|
||||
|
||||
<ChevronDownIcon className="h-4 w-4 ml-2 -mr-1" />
|
||||
</Button>
|
||||
</Menu>
|
||||
<ChevronDownIcon className="h-4 w-4 ml-2 -mr-1" />
|
||||
</Button>
|
||||
</Menu>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ module.exports = function (app) {
|
||||
app.use(
|
||||
'/internal',
|
||||
createProxyMiddleware({
|
||||
target: 'http://localhost:4000',
|
||||
target: 'http://127.0.0.1:4000',
|
||||
onError: (err, req, resp) => {
|
||||
console.log(err);
|
||||
},
|
||||
@@ -13,7 +13,7 @@ module.exports = function (app) {
|
||||
app.use(
|
||||
'/__',
|
||||
createProxyMiddleware({
|
||||
target: 'http://localhost:4000',
|
||||
target: 'http://127.0.0.1:4000',
|
||||
}),
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user