From 54d56afa002d10e1be2da0c705303ddd1dcfded4 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 29 Sep 2025 20:00:54 +0700 Subject: [PATCH] fix(category): menambahkan key module untuk params di sort button --- app/Livewire/Datatable/CategoriesTable.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Livewire/Datatable/CategoriesTable.php b/app/Livewire/Datatable/CategoriesTable.php index eac30fc..8575328 100644 --- a/app/Livewire/Datatable/CategoriesTable.php +++ b/app/Livewire/Datatable/CategoriesTable.php @@ -28,6 +28,7 @@ public function columns(): array if ($row->sort_order > 1) { $actions .= view('components.datatables.sort-button', [ 'id' => $row->id, + 'module' => 'category', 'direction' => 'up', 'tooltip' => 'Naik', 'color' => 'cyan', @@ -36,6 +37,7 @@ public function columns(): array $actions .= view('components.datatables.sort-button', [ 'id' => $row->id, + 'module' => 'category', 'direction' => 'first', 'tooltip' => 'Pertama', 'color' => 'emerald', @@ -46,6 +48,7 @@ public function columns(): array if ($row->sort_order < $maxSortOrder) { $actions .= view('components.datatables.sort-button', [ 'id' => $row->id, + 'module' => 'category', 'direction' => 'down', 'tooltip' => 'Turun', 'color' => 'orange', @@ -54,6 +57,7 @@ public function columns(): array $actions .= view('components.datatables.sort-button', [ 'id' => $row->id, + 'module' => 'category', 'direction' => 'last', 'tooltip' => 'Terakhir', 'color' => 'rose',