17526: Fix webdav dialog > wget tab command copy button only copying url
authorStephen Smith <stephen@curii.com>
Wed, 28 Jul 2021 20:55:01 +0000 (16:55 -0400)
committerStephen Smith <stephen@curii.com>
Wed, 28 Jul 2021 20:55:01 +0000 (16:55 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx

index 50d50944353c7847966243ab533b95c0ae45d6a1..73c89621880fdface4d805c556d3ea7c707f68f8 100644 (file)
@@ -142,6 +142,8 @@ export const WebDavS3InfoDialog = compose(
             activeTab = 2;
         }
 
+        const wgetCommand = `wget --http-user=${props.data.username} --http-passwd=${props.data.token} --mirror --no-parent --no-host --cut-dirs=0 ${winDav.toString()}`;
+
         return <Dialog
             open={props.open}
             maxWidth="md"
@@ -256,8 +258,8 @@ export const WebDavS3InfoDialog = compose(
 
                     <DetailsAttribute
                         label='Wget command'
-                        value={`wget --http-user=${props.data.username} --http-passwd=${props.data.token} --mirror --no-parent --no-host --cut-dirs=0 ${winDav.toString()}`}
-                        copyValue={winDav.toString()} />
+                        value={wgetCommand}
+                        copyValue={wgetCommand} />
 
                     <DetailsAttribute
                         label='Username'