ui: Various Fixes
- Fix warning/alert messages on unlock / offer templates. - Add change/set your password in header nav. - Various small tweaks / updates. - Console debug for sweep_all
This commit is contained in:
1 parent
6ed108e741
commit
eec0760e44
11 files changed
+74
-61
No files matched your search
@@ -647,18 +647,20 @@
|
||||
|
||||
const specialCids = [6, 9];
|
||||
|
||||
console.log("CID:", cid);
|
||||
console.log("Percent:", percent);
|
||||
console.log("Balance:", balance);
|
||||
console.log("Calculated Amount:", calculatedAmount);
|
||||
|
||||
if (specialCids.includes(parseInt(cid)) && percent === 1) {
|
||||
amountInput.setAttribute('data-hidden', 'true');
|
||||
amountInput.placeholder = 'Sweep All';
|
||||
amountInput.value = '';
|
||||
amountInput.disabled = true;
|
||||
} else if (amountInput.getAttribute('data-hidden') === 'true' && percent !== 1) {
|
||||
amountInput.value = calculatedAmount.toFixed(8);
|
||||
amountInput.setAttribute('data-hidden', 'false');
|
||||
amountInput.placeholder = '';
|
||||
amountInput.disabled = false;
|
||||
console.log("Sweep All activated for special CID:", cid);
|
||||
} else {
|
||||
amountInput.value = calculatedAmount.toFixed(8);
|
||||
amountInput.setAttribute('data-hidden', 'false');
|
||||
amountInput.placeholder = '';
|
||||
amountInput.disabled = false;
|
||||
}
|
||||
@@ -667,23 +669,27 @@
|
||||
if (sweepAllCheckbox) {
|
||||
if (specialCids.includes(parseInt(cid)) && percent === 1) {
|
||||
sweepAllCheckbox.checked = true;
|
||||
console.log("Sweep All checkbox checked");
|
||||
} else {
|
||||
sweepAllCheckbox.checked = false;
|
||||
console.log("Sweep All checkbox unchecked");
|
||||
}
|
||||
}
|
||||
|
||||
let subfeeCheckbox = document.querySelector(`[name="subfee_${cid}"]`);
|
||||
if (subfeeCheckbox) {
|
||||
subfeeCheckbox.checked = (percent === 1);
|
||||
console.log("Subfee checkbox status for CID", cid, ":", subfeeCheckbox.checked);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="opacity-100 text-gray-500 dark:text-gray-100">
|
||||
{% if w.cid in [6, 9] %} {# XMR | WOW #}
|
||||
{% if w.cid in '6, 9' %} {# XMR | WOW #}
|
||||
<td class="py-3 px-6 bold">Sweep All:</td>
|
||||
<td class="py-3 px-6">
|
||||
<input class="hover:border-blue-500 w-5 h-5 form-check-input text-blue-600 bg-gray-50 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-1 dark:bg-gray-500 dark:border-gray-400" type="checkbox" id="sweepall" name="sweepall_{{ w.cid }}" {% if w.wd_sweepall==true %} checked=checked{% endif %}>
|
||||
|
||||
Reference in new issue
Block a user