Commit d99d6dc3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Fix the "Change Camera" action

If device_id is propagated to onStateChange, it means we have a new value. Then, check if we have this property is enough to switch
parent 09f7c9b2
...@@ -503,7 +503,7 @@ ...@@ -503,7 +503,7 @@
} else { } else {
display_step = modification_dict.display_step; display_step = modification_dict.display_step;
} }
if (display_step === 'display_video') { if (display_step === 'display_video' || modification_dict.hasOwnProperty('device_id')) {
return renderVideoCapture(gadget); return renderVideoCapture(gadget);
} }
if (display_step === 'crop_picture') { if (display_step === 'crop_picture') {
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.29059.2195.37614</string> </value> <value> <string>981.29206.2173.6297</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1580133331.88</float> <float>1580142156.11</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment