Merge pull request 'Added logic to slect default ok button in checklist of quality' (#752) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s
Reviewed-on: #752
This commit was merged in pull request #752.
This commit is contained in:
@@ -25,15 +25,15 @@ class ProductionCheckList extends Component
|
|||||||
|
|
||||||
public $existingRecords = [];
|
public $existingRecords = [];
|
||||||
|
|
||||||
public bool $shouldSkipChecklist = false;
|
// public bool $shouldSkipChecklist = false;
|
||||||
|
|
||||||
public array $checklist = [];
|
public array $checklist = [];
|
||||||
|
|
||||||
public $showChecklist = false;
|
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 =
|
public $data =
|
||||||
[
|
[
|
||||||
@@ -45,23 +45,21 @@ class ProductionCheckList extends Component
|
|||||||
'checklist' => [],
|
'checklist' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
#[On('focus-item-id')]
|
// public function doCreate()
|
||||||
public function handleFocus()
|
// {
|
||||||
{
|
// $this->create();
|
||||||
$this->dispatch('focus-input');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function doCreate()
|
|
||||||
{
|
|
||||||
$this->create();
|
|
||||||
|
|
||||||
$this->shouldSkipChecklist = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// $this->shouldSkipChecklist = false;
|
||||||
|
// }
|
||||||
|
|
||||||
public function mount($records = [])
|
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()
|
public function cancel()
|
||||||
@@ -255,11 +253,10 @@ class ProductionCheckList extends Component
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedDataChecklist()
|
// public function updatedDataChecklist()
|
||||||
{
|
// {
|
||||||
$this->dispatch('checklistUpdated', $this->data['checklist']);
|
// $this->dispatch('checklistUpdated', $this->data['checklist']);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user