Merge pull request 'Added clear serial numbers in random serial number livewire' (#1396) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Reviewed-on: #1396
This commit was merged in pull request #1396.
This commit is contained in:
@@ -232,6 +232,14 @@ class RandomSerialNumberList extends Component
|
|||||||
$this->serialNumbers = $serialNumbers ?: [''];
|
$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(){
|
public function clear(){
|
||||||
$this->serialNumbers = [''];
|
$this->serialNumbers = [''];
|
||||||
$this->dispatch('sticker-options-clear', stickerOptions: '');
|
$this->dispatch('sticker-options-clear', stickerOptions: '');
|
||||||
|
|||||||
Reference in New Issue
Block a user