From 715373448c3e9df78f0ef1451640d45ab03a0ac0 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Thu, 5 Sep 2024 01:14:10 +0100 Subject: [PATCH] Fix QR code warning showing when not required --- webapp/src/components/QRCode.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/QRCode.vue b/webapp/src/components/QRCode.vue index 6c358f9f0..f9aae43ad 100644 --- a/webapp/src/components/QRCode.vue +++ b/webapp/src/components/QRCode.vue @@ -23,8 +23,8 @@ {{ refcode }} -
- QR_CODE_RESOLVER_URL is not set for this deployment.
+
+ QR_CODE_RESOLVER_URL is not set to the federation resolver URL for this deployment.
Links embedded within QR codes generated here will only work if this datalab instance remains at the same URL.

@@ -58,6 +58,9 @@ export default { }; }, computed: { + federatedQR() { + return FEDERATION_QR_CODE_RESOLVER_URL == QR_CODE_RESOLVER_URL; + }, QRCodeUrl() { // If the QR_CODE_RESOLVER_URL is not set, use the API_URL // with the redirect-to-ui option