From c02db89234e1b35ef40b0605bc00ba11e9109721 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Wed, 3 Nov 2021 10:48:20 +0100 Subject: [PATCH] net/haproxy: standardize both configtest buttons --- .../mvc/app/views/OPNsense/HAProxy/index.volt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt index 6aaf9cef2..b2d7f27ce 100644 --- a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt +++ b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt @@ -431,18 +431,26 @@ POSSIBILITY OF SUCH DAMAGE. if (data['result'].indexOf('ALERT') > -1) { BootstrapDialog.show({ type: BootstrapDialog.TYPE_DANGER, - title: "{{ lang._('HAProxy config contains critical errors') }}", + title: "{{ lang._('HAProxy configtest found critical errors') }}", message: data['result'], draggable: true }); } else if (data['result'].indexOf('WARNING') > -1) { BootstrapDialog.show({ type: BootstrapDialog.TYPE_WARNING, - title: "{{ lang._('HAProxy config contains minor errors') }}", + title: "{{ lang._('HAProxy configtest found minor errors') }}", message: data['result'], draggable: true }); + } else { + BootstrapDialog.show({ + type: BootstrapDialog.TYPE_WARNING, + title: "{{ lang._('HAProxy configtest result') }}", + message: "{{ lang._('Your HAProxy config contains no errors.') }}", + draggable: true + }); } + // when done, disable progress animation $('[id*="saveAndTestAct_progress"]').each(function(){ $(this).removeClass("fa fa-spinner fa-pulse");