From 69649adad8bf1bccdee6d5757d2bd1b38b279d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:49:06 +0300 Subject: [PATCH] fixed dashboard enabled issue --- app/BulkActions/Common/Dashboards.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/BulkActions/Common/Dashboards.php b/app/BulkActions/Common/Dashboards.php index fbb288022..e0644d058 100644 --- a/app/BulkActions/Common/Dashboards.php +++ b/app/BulkActions/Common/Dashboards.php @@ -39,19 +39,6 @@ class Dashboards extends BulkAction ], ]; - public function enable($request) - { - $dashboards = $this->getSelectedRecords($request); - - foreach ($dashboards as $dashboard) { - try { - $this->dispatch(new UpdateDashboard($dashboard, $request->merge(['enabled' => 1]))); - } catch (\Exception $e) { - flash($e->getMessage())->error()->important(); - } - } - } - public function disable($request) { $dashboards = $this->getSelectedRecords($request);