Allow setting permission of collections during import (#6799)

* Allow setting permission of collections during import

closes #6767

* Remove unused column
This commit is contained in:
Tom Moor
2024-04-15 20:13:12 -06:00
committed by GitHub
parent 3315db449f
commit 54c6abbba9
17 changed files with 186 additions and 122 deletions

View File

@@ -144,11 +144,13 @@ export default class CollectionsStore extends Store<Collection> {
}
@action
import = async (attachmentId: string, format?: string) => {
import = async (
attachmentId: string,
options: { format?: string; permission?: CollectionPermission | null }
) => {
await client.post("/collections.import", {
type: "outline",
format,
attachmentId,
...options,
});
};