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
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -156,11 +156,11 @@ $(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}]});
label: '<i class="far fa-lightbulb"></i>',
className: 'btn-warning responsive-button',
callback: function()
{
Quagga.CameraAccess.getActiveTrack().applyConstraints({ advanced: [{ torch: true }] });
return false;
}
},