diff --git a/app/sovran_systemsos_web/static/js/service-detail.js b/app/sovran_systemsos_web/static/js/service-detail.js index 0920cae..4f8711c 100644 --- a/app/sovran_systemsos_web/static/js/service-detail.js +++ b/app/sovran_systemsos_web/static/js/service-detail.js @@ -7,11 +7,16 @@ function _renderCredsHtml(credentials, unit) { for (var i = 0; i < credentials.length; i++) { var cred = credentials[i]; var id = "cred-" + Math.random().toString(36).substring(2, 8); - var displayValue = linkify(cred.value); var qrBlock = ""; if (cred.qrcode) { qrBlock = '
QR Code for ' + escHtml(cred.label) + '
Scan with Zeus app on your phone
'; } + // If qronly, render the label + QR block only — skip value and copy button + if (cred.qronly) { + html += '
' + escHtml(cred.label) + '
' + qrBlock + '
'; + continue; + } + var displayValue = linkify(cred.value); html += '
' + escHtml(cred.label) + '
' + qrBlock + '
' + displayValue + '
'; } return html; @@ -534,7 +539,7 @@ function openSystemChangePasswordModal(unit, name, icon) { '' + '' + '' + - '
⚠ This will change both your desktop login and Hub login password. After changing, your updated password will appear in the System Passwords credentials tile. Make sure to remember it — you will need it to sign back into the Hub.
' + + '
⚠ This will change both your desktop login and Hub login password. After changing, your updated password will appear in the System Passwords credentials tile.
' + '
' + '' + '' +