Skip to content

Commit cddb691

Browse files
Merge pull request #410 from getodk/autosend
Add autosend to managed QR codes
2 parents f8a495c + 99558b1 commit cddb691

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/components/field-key/qr-panel.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ export default {
8787
const settings = {
8888
server_url: apiPaths.serverUrlForFieldKey(token, projectId)
8989
};
90-
if (this.managed) settings.form_update_mode = 'match_exactly';
90+
if (this.managed) {
91+
settings.form_update_mode = 'match_exactly';
92+
settings.autosend = 'wifi_and_cellular';
93+
}
9194
return settings;
9295
}
9396
}
@@ -165,10 +168,11 @@ export default {
165168
"legacyCode": "Legacy QR Code"
166169
}
167170
},
168-
// "Get Blank Form" is the text of a button in ODK Collect.
169171
{
170-
"managed": "Collect will exactly match the Forms available to “{displayName}” including automatically applying updates. Users will not need to manually Get Blank Forms.",
171-
"legacy": "Users will have to manually Get Blank Forms on the device and determine which Forms to update.",
172+
// "Get Blank Form" is the text of a button in ODK Collect.
173+
"managed": "Collect will exactly match the Forms available to “{displayName}” including automatically applying updates. Users will not need to manually Get Blank Forms. Additionally, finalized Forms will be sent automatically as soon as a connection is found.",
174+
// "Get Blank Form" and "Send Finalized Form" are the text of buttons in ODK Collect.
175+
"legacy": "Users will have to manually Get Blank Forms on the device and determine which Forms to update. They will also need to manually Send Finalized Forms."
172176
},
173177
{
174178
"managed": {

test/components/field-key/qr-panel.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ describe('FieldKeyQrPanel', () => {
2323
const { token } = testData.extendedFieldKeys.last();
2424
panel.first(CollectQr).getProp('settings').should.eql({
2525
server_url: `/v1/key/${token}/projects/1`,
26-
form_update_mode: 'match_exactly'
26+
form_update_mode: 'match_exactly',
27+
autosend: 'wifi_and_cellular'
2728
});
2829
});
2930

transifex/strings_en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,12 +911,12 @@
911911
},
912912
"1": {
913913
"managed": {
914-
"string": "Collect will exactly match the Forms available to “{displayName}” including automatically applying updates. Users will not need to manually Get Blank Forms.",
914+
"string": "Collect will exactly match the Forms available to “{displayName}” including automatically applying updates. Users will not need to manually Get Blank Forms. Additionally, finalized Forms will be sent automatically as soon as a connection is found.",
915915
"developer_comment": "\"Get Blank Form\" is the text of a button in ODK Collect."
916916
},
917917
"legacy": {
918-
"string": "Users will have to manually Get Blank Forms on the device and determine which Forms to update.",
919-
"developer_comment": "\"Get Blank Form\" is the text of a button in ODK Collect."
918+
"string": "Users will have to manually Get Blank Forms on the device and determine which Forms to update. They will also need to manually Send Finalized Forms.",
919+
"developer_comment": "\"Get Blank Form\" and \"Send Finalized Form\" are the text of buttons in ODK Collect."
920920
}
921921
},
922922
"2": {

0 commit comments

Comments
 (0)