mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Little changes and changelog for #574
This commit is contained in:
parent
51cd81422e
commit
fc131f5598
@ -32,6 +32,7 @@
|
||||
|
||||
### General & other improvements/fixes
|
||||
- Big backend performance improvements (thanks @zebardy)
|
||||
- Added a button to enable the device flash light on the camera barcode scanner popup (thanks @radim-ek)
|
||||
- Optimized the top navbar height and overall spacing to waste less space
|
||||
- Replaced the scan-mode-switch-button by a native button because it's less disturbing
|
||||
- Fixed that the "contextual time ago" of date/time pickers was not displayed
|
||||
|
@ -156,12 +156,12 @@ $(document).on("click", "#barcodescanner-start-button", function(e)
|
||||
closeButton: true,
|
||||
buttons: {
|
||||
torch: {
|
||||
label: __t('Torch'),
|
||||
className: 'btn-primary responsive-button',
|
||||
callback: function(){
|
||||
var track = Quagga.CameraAccess.getActiveTrack();
|
||||
track.applyConstraints({advanced: [{torch:true}]});
|
||||
return false;
|
||||
label: '<i class="far fa-lightbulb"></i>',
|
||||
className: 'btn-warning responsive-button',
|
||||
callback: function()
|
||||
{
|
||||
Quagga.CameraAccess.getActiveTrack().applyConstraints({ advanced: [{ torch: true }] });
|
||||
return false;
|
||||
}
|
||||
},
|
||||
cancel: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user