Support for filter by parent document (#6850)
* Backend support for filter by parent document * parentDocumentId -> documentId
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
editCollectionPermissions,
|
||||
starCollection,
|
||||
unstarCollection,
|
||||
searchInCollection,
|
||||
} from "~/actions/definitions/collections";
|
||||
import useActionContext from "~/hooks/useActionContext";
|
||||
import useCurrentTeam from "~/hooks/useCurrentTeam";
|
||||
@@ -205,6 +206,7 @@ function CollectionMenu({
|
||||
onClick: handleExport,
|
||||
icon: <ExportIcon />,
|
||||
},
|
||||
actionToMenuItem(searchInCollection, context),
|
||||
{
|
||||
type: "separator",
|
||||
},
|
||||
|
||||
@@ -44,6 +44,7 @@ import {
|
||||
createNestedDocument,
|
||||
shareDocument,
|
||||
copyDocument,
|
||||
searchInDocument,
|
||||
} from "~/actions/definitions/documents";
|
||||
import useActionContext from "~/hooks/useActionContext";
|
||||
import useCurrentUser from "~/hooks/useCurrentUser";
|
||||
@@ -94,7 +95,7 @@ function DocumentMenu({
|
||||
const context = useActionContext({
|
||||
isContextMenu: true,
|
||||
activeDocumentId: document.id,
|
||||
activeCollectionId: document.collectionId,
|
||||
activeCollectionId: document.collectionId ?? undefined,
|
||||
});
|
||||
const { t } = useTranslation();
|
||||
const isMobile = useMobile();
|
||||
@@ -305,6 +306,7 @@ function DocumentMenu({
|
||||
actionToMenuItem(downloadDocument, context),
|
||||
actionToMenuItem(copyDocument, context),
|
||||
actionToMenuItem(printDocument, context),
|
||||
actionToMenuItem(searchInDocument, context),
|
||||
{
|
||||
type: "separator",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user