Added clear serial numbers in random serial number livewire
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Larastan / larastan (pull_request) Failing after 4m29s
Laravel Pint / pint (pull_request) Successful in 4m28s

This commit is contained in:
dhanabalan
2026-11-06 16:52:21 +05:30
parent 3f4bc4e013
commit 9140e62df2

View File

@@ -232,6 +232,14 @@ class RandomSerialNumberList extends Component
$this->serialNumbers = $serialNumbers ?: [''];
}
#[On('clear-serial-numbers')]
public function clearSerialNumbers(): void
{
$this->serialNumbers = [''];
$this->dispatch('sticker-options-clear', stickerOptions: '');
$this->dispatch('production-order-clear', productionOrder: '');
}
public function clear(){
$this->serialNumbers = [''];
$this->dispatch('sticker-options-clear', stickerOptions: '');