From 740e127578dce889852b5e8a122b9aac5c86f738 Mon Sep 17 00:00:00 2001 From: philmcmahon Date: Mon, 8 Jan 2024 11:47:14 +0000 Subject: [PATCH] Include destination workspace name in modal message --- frontend/src/js/components/workspace/CopyOrMoveModal.tsx | 5 +++-- .../src/js/components/workspace/WorkspacesSidebarItem.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/js/components/workspace/CopyOrMoveModal.tsx b/frontend/src/js/components/workspace/CopyOrMoveModal.tsx index 9651e5dc..fd5b5541 100644 --- a/frontend/src/js/components/workspace/CopyOrMoveModal.tsx +++ b/frontend/src/js/components/workspace/CopyOrMoveModal.tsx @@ -1,14 +1,15 @@ import React from 'react'; type Props = { + destinationWorkspaceName: string onSubmit: (action: "copy" | "move") => void } -export const CopyOrMoveModal = ({onSubmit}: Props) => { +export const CopyOrMoveModal = ({destinationWorkspaceName, onSubmit}: Props) => { return (

Copy or move items

- Do you want to copy or move the selected items to the destination workspace? + Do you want to copy or move the selected items to the workspace '{destinationWorkspaceName}'?