Updated navigation sort order for GuardNameResource and TestingPanelReadingResource for consistent display in the Master Entries and Testing Panel groups
This commit is contained in:
@@ -28,7 +28,7 @@ class GuardNameResource extends Resource
|
|||||||
|
|
||||||
protected static ?string $navigationGroup = 'Master Entries';
|
protected static ?string $navigationGroup = 'Master Entries';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 13;
|
protected static ?int $navigationSort = 14;
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -113,19 +113,19 @@ class TempLiveReadingResource extends Resource
|
|||||||
Tables\Actions\ForceDeleteBulkAction::make(),
|
Tables\Actions\ForceDeleteBulkAction::make(),
|
||||||
Tables\Actions\RestoreBulkAction::make(),
|
Tables\Actions\RestoreBulkAction::make(),
|
||||||
]),
|
]),
|
||||||
])
|
|
||||||
->headerActions([
|
|
||||||
ImportAction::make()
|
|
||||||
->importer(TempLiveReadingImporter::class)
|
|
||||||
->visible(function() {
|
|
||||||
return Filament::auth()->user()->can('view import temp live reading');
|
|
||||||
}),
|
|
||||||
ExportAction::make()
|
|
||||||
->exporter(TempLiveReadingExporter::class)
|
|
||||||
->visible(function() {
|
|
||||||
return Filament::auth()->user()->can('view export temp live reading');
|
|
||||||
}),
|
|
||||||
]);
|
]);
|
||||||
|
// ->headerActions([
|
||||||
|
// ImportAction::make()
|
||||||
|
// ->importer(TempLiveReadingImporter::class)
|
||||||
|
// ->visible(function() {
|
||||||
|
// return Filament::auth()->user()->can('view import temp live reading');
|
||||||
|
// }),
|
||||||
|
// ExportAction::make()
|
||||||
|
// ->exporter(TempLiveReadingExporter::class)
|
||||||
|
// ->visible(function() {
|
||||||
|
// return Filament::auth()->user()->can('view export temp live reading');
|
||||||
|
// }),
|
||||||
|
// ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ class TestingPanelReadingResource extends Resource
|
|||||||
|
|
||||||
protected static ?string $navigationGroup = 'Testing Panel';
|
protected static ?string $navigationGroup = 'Testing Panel';
|
||||||
|
|
||||||
|
protected static ?int $navigationSort = 3;
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
|
|||||||
Reference in New Issue
Block a user