From 234fd050d44ccaede71194255db38bc759e6f53f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 21 Aug 2024 12:22:40 +0200 Subject: [PATCH] vpnmain.cgi: Fix colouring of the connection status when disconnected Signed-off-by: Michael Tremer --- html/cgi-bin/vpnmain.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index 4423a29a8..55a7eff05 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -3393,11 +3393,11 @@ END print " "; } print "$confighash{$key}[25]"; - my $col1="bgcolor='${Header::colourred}'"; - my $active = "$Lang::tr{'capsclosed'}"; + my $col1="class='status is-disconnected'"; + my $active = "$Lang::tr{'capsclosed'}"; if ($confighash{$key}[33] eq "add") { - $col1="bgcolor='${Header::colourorange}'"; - $active = "$Lang::tr{'vpn wait'}"; + $col1="class='status is-connecting'"; + $active = "$Lang::tr{'vpn wait'}"; } foreach my $line (@status) { if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) || -- 2.39.5