Compare commits
3 Commits
efd469e07d
...
renovate/e
| Author | SHA1 | Date | |
|---|---|---|---|
| c841ff830d | |||
| f99bc12603 | |||
|
|
2b3d423769 |
@@ -25,15 +25,15 @@ class ProductionCheckList extends Component
|
||||
|
||||
public $existingRecords = [];
|
||||
|
||||
public bool $shouldSkipChecklist = false;
|
||||
// public bool $shouldSkipChecklist = false;
|
||||
|
||||
public array $checklist = [];
|
||||
|
||||
public $showChecklist = false;
|
||||
|
||||
public $skipChecklistValidation = false;
|
||||
// public $skipChecklistValidation = false;
|
||||
|
||||
protected $listeners = ['focus-item-id' => 'handleFocus', 'trigger-create' => 'doCreate',];
|
||||
// protected $listeners = ['focus-item-id' => 'handleFocus', 'trigger-create' => 'doCreate',];
|
||||
|
||||
public $data =
|
||||
[
|
||||
@@ -45,23 +45,21 @@ class ProductionCheckList extends Component
|
||||
'checklist' => [],
|
||||
];
|
||||
|
||||
#[On('focus-item-id')]
|
||||
public function handleFocus()
|
||||
{
|
||||
$this->dispatch('focus-input');
|
||||
}
|
||||
|
||||
public function doCreate()
|
||||
{
|
||||
$this->create();
|
||||
|
||||
$this->shouldSkipChecklist = false;
|
||||
}
|
||||
// public function doCreate()
|
||||
// {
|
||||
// $this->create();
|
||||
|
||||
// $this->shouldSkipChecklist = false;
|
||||
// }
|
||||
|
||||
public function mount($records = [])
|
||||
{
|
||||
$this->records = collect($records);
|
||||
// $this->records = collect($records);
|
||||
$this->records = $records;
|
||||
|
||||
foreach ($records as $record) {
|
||||
$this->checklist[$record['id']] = 'ok';
|
||||
}
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
@@ -255,11 +253,10 @@ class ProductionCheckList extends Component
|
||||
];
|
||||
}
|
||||
|
||||
public function updatedDataChecklist()
|
||||
{
|
||||
$this->dispatch('checklistUpdated', $this->data['checklist']);
|
||||
}
|
||||
|
||||
// public function updatedDataChecklist()
|
||||
// {
|
||||
// $this->dispatch('checklistUpdated', $this->data['checklist']);
|
||||
// }
|
||||
|
||||
public function render()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"alperenersoy/filament-export": "^3.0",
|
||||
"althinect/filament-spatie-roles-permissions": "^2.3",
|
||||
"diogogpinto/filament-auth-ui-enhancer": "^1.0",
|
||||
"erag/laravel-pwa": "^1.9",
|
||||
"erag/laravel-pwa": "^2.0",
|
||||
"filament/filament": "^3.3",
|
||||
"intervention/image": "^3.11",
|
||||
"irazasyed/telegram-bot-sdk": "^3.15",
|
||||
|
||||
Reference in New Issue
Block a user