mirror of https://github.com/Aidaho12/haproxy-wi
v8.1.2: Update log file check to include 'waf' condition
Previously, the check for a selected log file didn't account for the 'waf' variable. This update adds a condition to ensure that the warning is triggered only if 'waf' is also an empty string.pull/411/head
parent
5c28a47cae
commit
b49edeb8d1
|
@ -152,7 +152,7 @@ function showLog() {
|
|||
file = file_from_get;
|
||||
}
|
||||
}
|
||||
if (file === undefined || file === null) {
|
||||
if ((file === undefined || file === null) && waf === '') {
|
||||
toastr.warning('Select a log file first')
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue