Update sudo mode view, fix trusted device checkbox

This commit is contained in:
Daniel Supernault 2023-05-05 00:01:07 -06:00
parent dac0d08319
commit 8ef900bf8e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 4 deletions

View File

@ -40,9 +40,9 @@
@endif @endif
</div> </div>
<div class="form-group"> <div class="form-group" id="trusted-device-wrapper">
<div class="custom-control custom-checkbox" id="trusted-device"> <div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" name="trustDevice"> <input type="checkbox" class="custom-control-input" name="trustDevice" id="trusted-device">
<label class="custom-control-label text-muted" for="trusted-device">Trust this device and don't ask again</label> <label class="custom-control-label text-muted" for="trusted-device">Trust this device and don't ask again</label>
</div> </div>
</div> </div>
@ -91,7 +91,7 @@
email.setAttribute('readonly', 'readonly'); email.setAttribute('readonly', 'readonly');
email.style.opacity = '20%'; email.style.opacity = '20%';
let trustedDevice = document.getElementById('trusted-device'); let trustedDevice = document.getElementById('trusted-device-wrapper');
trustedDevice.style.opacity = '20%'; trustedDevice.style.opacity = '20%';
let btn = document.getElementById('sbtn'); let btn = document.getElementById('sbtn');