Skip to content

Commit

Permalink
fix(app-headless-cms): bulk action enum (#4247)
Browse files Browse the repository at this point in the history
  • Loading branch information
leopuleo authored Sep 9, 2024
1 parent 3f7c10b commit 4a02af3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ActionDelete = observer(() => {
loadingLabel: `Processing ${entriesLabel}`,
execute: async () => {
if (worker.isSelectedAll) {
await worker.processInBulk("moveToTrash");
await worker.processInBulk("MoveToTrash");
worker.resetItems();
showSnackbar(
"All entries will be moved to trash. This process will be carried out in the background and may take some time. You can safely navigate away from this page while the process is running.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ActionMove = observer(() => {
loadingLabel: `Processing ${entriesLabel}`,
execute: async () => {
if (worker.isSelectedAll) {
await worker.processInBulk("moveToFolder", {
await worker.processInBulk("MoveToFolder", {
folderId: folder.id
});
worker.resetItems();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ActionPublish = observer(() => {
loadingLabel: `Processing ${entriesLabel}`,
execute: async () => {
if (worker.isSelectedAll) {
await worker.processInBulk("publish");
await worker.processInBulk("Publish");
worker.resetItems();
showSnackbar(
"All entries will be published. This process will be carried out in the background and may take some time. You can safely navigate away from this page while the process is running.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ActionUnpublish = observer(() => {
loadingLabel: `Processing ${entriesLabel}`,
execute: async () => {
if (worker.isSelectedAll) {
await worker.processInBulk("unpublish");
await worker.processInBulk("Unpublish");
worker.resetItems();
showSnackbar(
"All entries will be unpublished. This process will be carried out in the background and may take some time. You can safely navigate away from this page while the process is running.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const TrashBin = () => {
return <TrashBinButton onClick={showTrashBin} />;
}}
bulkActionsGateway={bulkActionsGateway}
deleteBulkActionName={"delete"}
restoreBulkActionName={"restore"}
deleteBulkActionName={"Delete"}
restoreBulkActionName={"Restore"}
listGateway={listGateway}
deleteGateway={deleteGateway}
restoreGateway={restoreGateway}
Expand Down

0 comments on commit 4a02af3

Please sign in to comment.