Commit ff5255d5 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Improve texts of all buttons

parent 2a5410de
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
}) })
.push(function () { .push(function () {
var state_dict = {}; var state_dict = {};
state_dict['blob_state_' + blob_page] = 'stored'; state_dict['blob_state_' + blob_page] = 'OK';
// XXX TODO: ajax must return a active process image content UUID // XXX TODO: ajax must return a active process image content UUID
// which should be sent in the final form submittion // which should be sent in the final form submittion
state_dict['blob_uuid_' + blob_page] = 'XXX'; state_dict['blob_uuid_' + blob_page] = 'XXX';
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
}, function () { }, function () {
// XXX TODO: Handle error case // XXX TODO: Handle error case
var state_dict = {}; var state_dict = {};
state_dict['blob_state_' + blob_page] = 'failed'; state_dict['blob_state_' + blob_page] = 'Error';
return gadget.changeState(state_dict); return gadget.changeState(state_dict);
}); });
} }
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
// XXX TODO display a loader when sending // XXX TODO display a loader when sending
if (gadget.state['blob_state_' + i] !== 'deleted') { if (gadget.state['blob_state_' + i] !== 'deleted') {
thumbnail_dom_list.push(domsugar('button', {type: 'button', thumbnail_dom_list.push(domsugar('button', {type: 'button',
text: 'Image' + (i + 1) + ' (' + gadget.state['blob_state_' + i] + ')', text: 'Page' + (i + 1) + ' (' + gadget.state['blob_state_' + i] + ')',
// Do not allow to show again the current image // Do not allow to show again the current image
// or do not allow to show sending image (to simplify button management) // or do not allow to show sending image (to simplify button management)
disabled: (i === gadget.state.page) || (gadget.state['blob_state_' + i] === 'sending'), disabled: (i === gadget.state.page) || (gadget.state['blob_state_' + i] === 'sending'),
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
// Always add a button to generate a new image // Always add a button to generate a new image
// XXX TODO translation + right term // XXX TODO translation + right term
thumbnail_dom_list.push(domsugar('button', {type: 'button', thumbnail_dom_list.push(domsugar('button', {type: 'button',
text: 'New', text: 'New Page',
// Do not allow to show again the current image // Do not allow to show again the current image
disabled: (len === gadget.state.page - 1), disabled: (len === gadget.state.page - 1),
'class': 'new-btn' 'class': 'new-btn'
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
video.play(); video.play();
return RSVP.all([ return RSVP.all([
getVideoDeviceList(), getVideoDeviceList(),
gadget.getTranslationList(["Take Picture", "Change Camera"]) gadget.getTranslationList(["Capture", "Change Camera"])
]); ]);
}) })
.push(function (result_list) { .push(function (result_list) {
...@@ -346,7 +346,7 @@ ...@@ -346,7 +346,7 @@
.push(function (blob) { .push(function (blob) {
gadget.detached_promise_dict.media_stream.cancel('Not needed anymore, as captured'); gadget.detached_promise_dict.media_stream.cancel('Not needed anymore, as captured');
return RSVP.all([ return RSVP.all([
gadget.getTranslationList(["Reset", "Confirm"]), gadget.getTranslationList(["Delete", "Save"]),
createImageBitmap(blob) createImageBitmap(blob)
]); ]);
}) })
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
} }
function renderSubmittedPicture(gadget) { function renderSubmittedPicture(gadget) {
return gadget.getTranslationList(["Delete", "Retry"]) return gadget.getTranslationList(["Delete", "Save"])
.push(function (translation_list) { .push(function (translation_list) {
var button_list = [ var button_list = [
// XXX TODO: improve icon // XXX TODO: improve icon
......
...@@ -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.30481.36256.38348</string> </value> <value> <string>981.30507.33878.33041</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>1580220211.01</float> <float>1580308941.19</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