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:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user