From 93556a99a7a323b7a8aa63337d7fdc424a10e588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Mon, 21 Sep 2020 19:07:03 +0200 Subject: [PATCH] adding #25 --- app/Commands/Fail2banManageCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Commands/Fail2banManageCommand.php b/app/Commands/Fail2banManageCommand.php index d190a9c..7b47969 100644 --- a/app/Commands/Fail2banManageCommand.php +++ b/app/Commands/Fail2banManageCommand.php @@ -92,8 +92,12 @@ class Fail2banManageCommand extends Command $checkbox = new CheckboxItem($name, function(CliMenu $menu) use ($name) { if ($this->configuration[$name] === true) { $this->call('fail2ban:disable', [ 'configuration' => $name ]); + $menu->redraw(); + $menu->confirm($name.' is disabled!')->display('OK!'); } else { $this->call('fail2ban:enable', [ 'configuration' => $name ]); + $menu->redraw(); + $menu->confirm($name.' is enabled!')->display('OK!'); } // getting new value