Skip to content

Commit 6eb5633

Browse files
authored
Fix QR code warning showing when not required (#875)
1 parent 3924984 commit 6eb5633

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webapp/src/components/QRCode.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
{{ refcode }}
2424
</div>
2525
</div>
26-
<div class="alert alert-info">
27-
QR_CODE_RESOLVER_URL is not set for this deployment.<br />
26+
<div v-if="!federatedQR" class="alert alert-info">
27+
QR_CODE_RESOLVER_URL is not set to the federation resolver URL for this deployment.<br />
2828
Links embedded within QR codes generated here will only work if this <i>datalab</i> instance
2929
remains at the same URL.<br /><br />
3030

@@ -58,6 +58,9 @@ export default {
5858
};
5959
},
6060
computed: {
61+
federatedQR() {
62+
return FEDERATION_QR_CODE_RESOLVER_URL == QR_CODE_RESOLVER_URL;
63+
},
6164
QRCodeUrl() {
6265
// If the QR_CODE_RESOLVER_URL is not set, use the API_URL
6366
// with the redirect-to-ui option

0 commit comments

Comments
 (0)