@@ -183,7 +183,12 @@ export const calculateItemSize = async (
|
|||||||
|
|
||||||
if (item.id === "trash_" + context.user.id) {
|
if (item.id === "trash_" + context.user.id) {
|
||||||
const trashedItems = await repository.find(
|
const trashedItems = await repository.find(
|
||||||
{ company_id: context.company.id, is_in_trash: true, scope: "personal" },
|
{
|
||||||
|
company_id: context.company.id,
|
||||||
|
creator: context.user.id,
|
||||||
|
is_in_trash: true,
|
||||||
|
scope: "personal",
|
||||||
|
},
|
||||||
{},
|
{},
|
||||||
context,
|
context,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ export const useDriveUpload = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
logger.debug("Finished uploading files");
|
||||||
|
await refresh(context.parentId);
|
||||||
};
|
};
|
||||||
|
|
||||||
const uploadFromUrl = (
|
const uploadFromUrl = (
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
|
|||||||
const viewId = item.is_directory ? item.id : item.parent_id;
|
const viewId = item.is_directory ? item.id : item.parent_id;
|
||||||
const route = RouterServices.generateRouteFromState({ companyId: company, viewId, itemId });
|
const route = RouterServices.generateRouteFromState({ companyId: company, viewId, itemId });
|
||||||
window.open(route, '_blank');
|
window.open(route, '_blank');
|
||||||
window.open(route, '_blank');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
|
|||||||
Reference in New Issue
Block a user