fix(category): menambahkan key module untuk params di sort button
This commit is contained in:
parent
5c4c548b4c
commit
54d56afa00
@ -28,6 +28,7 @@ public function columns(): array
|
|||||||
if ($row->sort_order > 1) {
|
if ($row->sort_order > 1) {
|
||||||
$actions .= view('components.datatables.sort-button', [
|
$actions .= view('components.datatables.sort-button', [
|
||||||
'id' => $row->id,
|
'id' => $row->id,
|
||||||
|
'module' => 'category',
|
||||||
'direction' => 'up',
|
'direction' => 'up',
|
||||||
'tooltip' => 'Naik',
|
'tooltip' => 'Naik',
|
||||||
'color' => 'cyan',
|
'color' => 'cyan',
|
||||||
@ -36,6 +37,7 @@ public function columns(): array
|
|||||||
|
|
||||||
$actions .= view('components.datatables.sort-button', [
|
$actions .= view('components.datatables.sort-button', [
|
||||||
'id' => $row->id,
|
'id' => $row->id,
|
||||||
|
'module' => 'category',
|
||||||
'direction' => 'first',
|
'direction' => 'first',
|
||||||
'tooltip' => 'Pertama',
|
'tooltip' => 'Pertama',
|
||||||
'color' => 'emerald',
|
'color' => 'emerald',
|
||||||
@ -46,6 +48,7 @@ public function columns(): array
|
|||||||
if ($row->sort_order < $maxSortOrder) {
|
if ($row->sort_order < $maxSortOrder) {
|
||||||
$actions .= view('components.datatables.sort-button', [
|
$actions .= view('components.datatables.sort-button', [
|
||||||
'id' => $row->id,
|
'id' => $row->id,
|
||||||
|
'module' => 'category',
|
||||||
'direction' => 'down',
|
'direction' => 'down',
|
||||||
'tooltip' => 'Turun',
|
'tooltip' => 'Turun',
|
||||||
'color' => 'orange',
|
'color' => 'orange',
|
||||||
@ -54,6 +57,7 @@ public function columns(): array
|
|||||||
|
|
||||||
$actions .= view('components.datatables.sort-button', [
|
$actions .= view('components.datatables.sort-button', [
|
||||||
'id' => $row->id,
|
'id' => $row->id,
|
||||||
|
'module' => 'category',
|
||||||
'direction' => 'last',
|
'direction' => 'last',
|
||||||
'tooltip' => 'Terakhir',
|
'tooltip' => 'Terakhir',
|
||||||
'color' => 'rose',
|
'color' => 'rose',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user