🐛do not display empty menu for "shared_with_me" (#346)

This commit is contained in:
Anton Shepilov
2024-01-23 14:23:00 +03:00
committed by GitHub
parent bf4599c483
commit a67c7e5bee
2 changed files with 15 additions and 13 deletions
@@ -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>
+2 -2
View File
@@ -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',
}),
);
};