Skip to content

Commit

Permalink
fix collection move [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Jan 17, 2024
1 parent ad92231 commit b30699e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion databox/api/src/Controller/Admin/WorkspaceCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function configureFields(string $pageName): iterable
$id = IdField::new();
$name = TextField::new('name');
$slug = TextField::new('slug');
$isPublic = BooleanField::new('public');
$isPublic = BooleanField::new('public')
->setHelp('If you need to expose a collection publicly, then its workspace has to be public.');
$ownerId = TextField::new('ownerId');
$ownerUser = $this->userChoiceField->create('ownerId', 'Owner');
$enabledLocales = ArrayField::new('enabledLocales');
Expand Down
3 changes: 2 additions & 1 deletion databox/client/src/api/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export async function moveCollection(
parentId: string | undefined
): Promise<void> {
await apiClient.put(
`/collections/${id}/move/${parentId ? parentId : 'root'}`
`/collections/${id}/move/${parentId ? parentId : 'root'}`,
{}
);
}

Expand Down

0 comments on commit b30699e

Please sign in to comment.