From e23f609e7aa281fc938dbd9ee375355b33720c72 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 5 Aug 2019 21:55:33 -0700 Subject: [PATCH] Only show location when moving --- .../components/server/files/RenameFileModal.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/scripts/components/server/files/RenameFileModal.tsx b/resources/scripts/components/server/files/RenameFileModal.tsx index 2943d002b..7f50c8413 100644 --- a/resources/scripts/components/server/files/RenameFileModal.tsx +++ b/resources/scripts/components/server/files/RenameFileModal.tsx @@ -42,10 +42,12 @@ export default ({ file, useMoveTerminology, ...props }: Props) => { {({ isSubmitting, values }) => (
-
+
{
+ {useMoveTerminology &&

New location:  /home/container/{join(directory, values.name).replace(/^(\.\.\/|\/)+/, '')}

+ } )}