Snazzy ui updates.
This commit is contained in:
@@ -62,11 +62,14 @@
|
||||
</div>
|
||||
<div class="mt-2 d-none" id="rsaOptions">
|
||||
<label class="form-label small">Key Size</label>
|
||||
<select name="rsa_bits" class="form-select form-select-sm">
|
||||
<select name="rsa_bits" class="form-select form-select-sm" id="rsaBitsSelect">
|
||||
<option value="2048" selected>2048 bits (~128 bits entropy)</option>
|
||||
<option value="3072">3072 bits (~128 bits entropy)</option>
|
||||
<option value="4096">4096 bits (~128 bits entropy)</option>
|
||||
</select>
|
||||
<div class="form-text text-warning d-none" id="rsaQrWarning">
|
||||
<i class="bi bi-exclamation-triangle me-1"></i>QR code unavailable for keys >3072 bits
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -498,6 +501,16 @@ if (useRsaCheck) {
|
||||
});
|
||||
}
|
||||
|
||||
// RSA key size QR warning
|
||||
const rsaBitsSelect = document.getElementById('rsaBitsSelect');
|
||||
const rsaQrWarning = document.getElementById('rsaQrWarning');
|
||||
|
||||
if (rsaBitsSelect && rsaQrWarning) {
|
||||
rsaBitsSelect.addEventListener('change', function() {
|
||||
rsaQrWarning.classList.toggle('d-none', parseInt(this.value) <= 3072);
|
||||
});
|
||||
}
|
||||
|
||||
// PIN visibility toggle
|
||||
let pinHidden = false;
|
||||
function togglePinVisibility() {
|
||||
|
||||
Reference in New Issue
Block a user