Skip to content

Commit ccd924a

Browse files
authored
Make Component Group sortable in dashboard (#204)
1 parent 8af2974 commit ccd924a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Filament/Resources/ComponentGroupResource.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public static function table(Table $table): Table
8484
Tables\Actions\DeleteBulkAction::make(),
8585
]),
8686
])
87+
->reorderable('order')
88+
->defaultSort('order')
8789
->emptyStateHeading(__('cachet::component_group.list.empty_state.heading'))
8890
->emptyStateDescription(__('cachet::component_group.list.empty_state.description'));
8991
}

src/Filament/Resources/ComponentResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public static function table(Table $table): Table
108108
]),
109109
])
110110
->reorderable('order')
111+
->defaultSort('order')
111112
->emptyStateHeading(__('cachet::component.list.empty_state.heading'))
112113
->emptyStateDescription(__('cachet::component.list.empty_state.description'));
113114
}

0 commit comments

Comments
 (0)