Hide the account and fee sections for the types that have none

This commit is contained in:
ai-bot committed 2026-11-14 18:22:01 +00:00
1 parent 5720ba6d39
commit 998ae289eb
1 file changed
+12
+12
View File
@@ -327,6 +327,18 @@
if (!spec.to) { if (!spec.to) {
Skuld.setFieldValue("to_market", ""); Skuld.setFieldValue("to_market", "");
} }
group("market").hidden = !spec.market;
var marketSelect = document.querySelector('[name="market_id"]');
marketSelect.required = Boolean(spec.market);
if (!spec.market) {
Skuld.setFieldValue("market_id", "");
}
group("fee").hidden = !spec.fee;
if (!spec.fee) {
Skuld.setFieldValue("fee", "");
}
} }
function fillTypes() { function fillTypes() {