Commit f3d35b8d authored by Franco Fichtner's avatar Franco Fichtner

firewall: tweak previous

(cherry picked from commit 2da105f0)
parent d4ef8818
...@@ -383,14 +383,15 @@ $( document ).ready(function() { ...@@ -383,14 +383,15 @@ $( document ).ready(function() {
if ((!isset($filterent['floating']) && $selected_if == $filterent['interface']) || if ((!isset($filterent['floating']) && $selected_if == $filterent['interface']) ||
(isset($filterent['floating']) && $selected_if == 'FloatingRules')): (isset($filterent['floating']) && $selected_if == 'FloatingRules')):
$interface_has_rules = true; $interface_has_rules = true;
// select icon
if (!isset($filterent['type']) && empty($filterent['disabled'])) { if (!isset($filterent['type'])) {
// not very nice.... associated NAT rules don't have a type... // not very nice.... associated NAT rules don't have a type...
// NAT rules shouldn't leak into the rules screen, breaks on edit // NAT rules shouldn't leak into the rules screen, breaks on edit
continue; continue;
} else if (!isset($filterent['type']) && !empty($filterent['disabled'])) { }
$iconfn = "glyphicon-play text-muted";
} elseif ($filterent['type'] == "block" && empty($filterent['disabled'])) { // select icon
if ($filterent['type'] == "block" && empty($filterent['disabled'])) {
$iconfn = "glyphicon-remove text-danger"; $iconfn = "glyphicon-remove text-danger";
} elseif ($filterent['type'] == "block" && !empty($filterent['disabled'])) { } elseif ($filterent['type'] == "block" && !empty($filterent['disabled'])) {
$iconfn = "glyphicon-remove text-muted"; $iconfn = "glyphicon-remove text-muted";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment