Set duration for success message in production quantity page
This commit is contained in:
@@ -339,7 +339,8 @@ class ProductionQuantityPage extends Page implements HasForms
|
|||||||
->label('Item Code')
|
->label('Item Code')
|
||||||
->columnSpan(1)
|
->columnSpan(1)
|
||||||
->autofocus(true)
|
->autofocus(true)
|
||||||
->reactive()
|
//->reactive()
|
||||||
|
->live(onBlur: true) // avoids per-keystroke triggering
|
||||||
->default(fn () => $this->clear_qr)
|
->default(fn () => $this->clear_qr)
|
||||||
->extraAttributes([
|
->extraAttributes([
|
||||||
'wire:keydown.enter' => 'processAllValues($event.target.value)',
|
'wire:keydown.enter' => 'processAllValues($event.target.value)',
|
||||||
@@ -1281,6 +1282,7 @@ class ProductionQuantityPage extends Page implements HasForms
|
|||||||
->title("Valid QR Found") // {$operatorName}
|
->title("Valid QR Found") // {$operatorName}
|
||||||
->body("Valid QR code scanned: {$this->qrData}.")
|
->body("Valid QR code scanned: {$this->qrData}.")
|
||||||
->success()
|
->success()
|
||||||
|
->duration(200)
|
||||||
->send();
|
->send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user