From 8dc53909e7a9c4d30f84c8ad7c6cdbe21366ac12 Mon Sep 17 00:00:00 2001 From: Matthew White Date: Sat, 19 Dec 2020 22:18:42 -0500 Subject: [PATCH] Rename ?media query parameter to ?attachments --- src/components/submission/download-dropdown.vue | 2 +- test/components/submission/download-dropdown.spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/submission/download-dropdown.vue b/src/components/submission/download-dropdown.vue index c8f2f6bd7..5201a7939 100644 --- a/src/components/submission/download-dropdown.vue +++ b/src/components/submission/download-dropdown.vue @@ -26,7 +26,7 @@ except according to the terms contained in the LICENSE file.
  • - + {{ $t('action.download.withoutMedia') }}
  • diff --git a/test/components/submission/download-dropdown.spec.js b/test/components/submission/download-dropdown.spec.js index 864725f1b..b24811065 100644 --- a/test/components/submission/download-dropdown.spec.js +++ b/test/components/submission/download-dropdown.spec.js @@ -67,7 +67,7 @@ describe('SubmissionDownloadDropdown', () => { testData.extendedForms.createPast(1); mountComponent().find('a').map(a => a.getAttribute('href')).should.eql([ '/v1/projects/1/forms/f/submissions.csv.zip', - '/v1/projects/1/forms/f/submissions.csv.zip?media=false', + '/v1/projects/1/forms/f/submissions.csv.zip?attachments=false', '/v1/projects/1/forms/f/submissions.csv' ]); }); @@ -128,7 +128,7 @@ describe('SubmissionDownloadDropdown', () => { trigger.click(dropdown.find('a')[1]); $emit.getCall(0).args.should.eql([ 'decrypt', - '/v1/projects/1/forms/f/submissions.csv.zip?media=false' + '/v1/projects/1/forms/f/submissions.csv.zip?attachments=false' ]); }); @@ -189,7 +189,7 @@ describe('SubmissionDownloadDropdown', () => { }); dropdown.find('a').map(a => a.getAttribute('href')).should.eql([ '/v1/projects/1/forms/f/submissions.csv.zip?%24filter=__system%2FsubmitterId+eq+1', - '/v1/projects/1/forms/f/submissions.csv.zip?media=false&%24filter=__system%2FsubmitterId+eq+1', + '/v1/projects/1/forms/f/submissions.csv.zip?attachments=false&%24filter=__system%2FsubmitterId+eq+1', '/v1/projects/1/forms/f/submissions.csv?%24filter=__system%2FsubmitterId+eq+1' ]); });