mapper provider wip
This commit is contained in:
1 parent
b3318b1c03
commit
a487fe0838
11 files changed
+161
-92
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Actions\MapperProvider;
|
||||
use App\Filament\Tables\Columns\MapperRightColumn;
|
||||
use App\Models\Event;
|
||||
use App\Models\Mapper;
|
||||
@@ -33,7 +34,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->query(Mapper::query())
|
||||
->query(MapperProvider::load())
|
||||
->columns([
|
||||
MapperRightColumn::make('right')->label(''),
|
||||
])->searchable(['home', 'away'])
|
||||
@@ -86,7 +87,8 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
||||
Action::make('reload_data')
|
||||
->hiddenLabel()
|
||||
->color('gray')
|
||||
->icon('phosphor-x')
|
||||
->icon('heroicon-o-arrow-path')
|
||||
// ->icon('phosphor-x')
|
||||
->action(function (Component $livewire) {
|
||||
$livewire->resetTableFiltersForm(); // Clears all filters
|
||||
$livewire->tableSearch = ''; // Clears the main search bar
|
||||
|
||||
Reference in new issue
Block a user