System: Trust: Certificates - work in progress for https://github.com/opnsense/core/issues/7248

expand PEM output section when importing data
This commit is contained in:
Ad Schellevis 2024-03-01 18:55:19 +01:00
parent 006be3a0c4
commit b8bd667d64
2 changed files with 7 additions and 0 deletions

View File

@ -115,6 +115,7 @@
<type>header</type>
<label>Output (PEM format)</label>
<collapse>true</collapse>
<style>pem_section</style>
</field>
<field>
<id>cert.crt_payload</id>

View File

@ -115,6 +115,12 @@
target.show();
}
});
/* expand PEM section */
if (['import', 'import_csr'].includes($(this).val())) {
if ($(".pem_section > table > tbody > tr:eq(0) > td:eq(0)").is(':hidden')) {
$(".pem_section > table > thead").click();
}
}
});