[arvados-workbench2] updated: 2.4.2-4-ge30e54d6
git repository hosting
git at public.arvados.org
Wed Sep 21 18:39:48 UTC 2022
Summary of changes:
src/store/open-in-new-tab/open-in-new-tab.actions.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
via e30e54d674c95ee15e296c71e471c1555bdc5a38 (commit)
from 48569dabc7498c7f3be76d00717f233715ab23fc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e30e54d674c95ee15e296c71e471c1555bdc5a38
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
refs #19567
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