fix(category): menambahkan key module untuk params di sort button

This commit is contained in:
Yoga Pangestu 2025-09-29 20:00:54 +07:00
parent 5c4c548b4c
commit 54d56afa00

View File

@ -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',