[arvados-workbench2] created: 2.4.0-193-gfd90dc1f
git repository hosting
git at public.arvados.org
Wed Sep 21 18:05:34 UTC 2022
at fd90dc1f98849967efa7042a869bd13492f57a79 (commit)
commit fd90dc1f98849967efa7042a869bd13492f57a79
Author: Stephen Smith <stephen at curii.com>
Date: Wed Sep 21 14:02:46 2022 -0400
fix: missing url origin in copy-to-clipboard for local resources
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/store/open-in-new-tab/open-in-new-tab.actions.ts b/src/store/open-in-new-tab/open-in-new-tab.actions.ts
index c465aae8..6b9db6a5 100644
--- a/src/store/open-in-new-tab/open-in-new-tab.actions.ts
+++ b/src/store/open-in-new-tab/open-in-new-tab.actions.ts
@@ -21,7 +21,9 @@ export const copyToClipboardAction = (resource: any) => (dispatch: Dispatch, get
// Copy to clipboard omits token to avoid accidental sharing
const url = getNavUrl(resource.uuid, getState().auth, false);
- if (url) {
+ if (url[0] === '/') {
+ copy(`${window.location.origin}${url}`);
+ } else if (url.length) {
copy(url);
}
};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list