Skip to content

Commit

Permalink
Fix QR code warning showing when not required (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Sep 5, 2024
1 parent 3924984 commit 6eb5633
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webapp/src/components/QRCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
{{ refcode }}
</div>
</div>
<div class="alert alert-info">
QR_CODE_RESOLVER_URL is not set for this deployment.<br />
<div v-if="!federatedQR" class="alert alert-info">
QR_CODE_RESOLVER_URL is not set to the federation resolver URL for this deployment.<br />
Links embedded within QR codes generated here will only work if this <i>datalab</i> instance
remains at the same URL.<br /><br />

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6eb5633

Please sign in to comment.