Little changes and changelog for #574

This commit is contained in:
Bernd Bestel
2020-03-01 17:58:10 +01:00
parent 51cd81422e
commit fc131f5598
2 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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;
} }
}, },