From b8bd667d64034f6bcf9d5c8faca7142670c31ec3 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 1 Mar 2024 18:55:19 +0100 Subject: [PATCH] System: Trust: Certificates - work in progress for https://github.com/opnsense/core/issues/7248 expand PEM output section when importing data --- .../mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml | 1 + src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml b/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml index 221ffe20f..c37d946e7 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml +++ b/src/opnsense/mvc/app/controllers/OPNsense/Trust/forms/dialogCert.xml @@ -115,6 +115,7 @@ header true + cert.crt_payload diff --git a/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt b/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt index 1ce57700c..3a813da57 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Trust/cert.volt @@ -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(); + } + } });