mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Little changes and changelog for #574
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
### General & other improvements/fixes
|
### General & other improvements/fixes
|
||||||
- Big backend performance improvements (thanks @zebardy)
|
- 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
|
- 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
|
- 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
|
- Fixed that the "contextual time ago" of date/time pickers was not displayed
|
||||||
|
@@ -156,11 +156,11 @@ $(document).on("click", "#barcodescanner-start-button", function(e)
|
|||||||
closeButton: true,
|
closeButton: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
torch: {
|
torch: {
|
||||||
label: __t('Torch'),
|
label: '<i class="far fa-lightbulb"></i>',
|
||||||
className: 'btn-primary responsive-button',
|
className: 'btn-warning responsive-button',
|
||||||
callback: function(){
|
callback: function()
|
||||||
var track = Quagga.CameraAccess.getActiveTrack();
|
{
|
||||||
track.applyConstraints({advanced: [{torch:true}]});
|
Quagga.CameraAccess.getActiveTrack().applyConstraints({ advanced: [{ torch: true }] });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user