From 00c914e9988ebbbfb85da11182a6c9a6af4800d1 Mon Sep 17 00:00:00 2001 From: SeriousHorncat Date: Mon, 16 Dec 2024 16:04:46 -0600 Subject: [PATCH] Updated to support attaching genbank .gb files --- CHANGELOG.md | 1 + frontend/src/views/AnalysisView.vue | 4 ++-- frontend/test/components/Dialogs/InputDialog.spec.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb9b3dc2..5afd3362 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ using OpenCravat. VCF string provided by Ensembl's API is cached in the MongoDB Variant annotations were rendering vertically and it was taking too much space. - Analyses have a version manifest of annotation's dataset, source, and version - Increased VueJS version to 3.5.12 to use TemplateRef as a feature +- Added support for attaching genbank (.gb) files for supporting evidence attachments ### Development diff --git a/frontend/src/views/AnalysisView.vue b/frontend/src/views/AnalysisView.vue index f0f61d60..ca51292b 100644 --- a/frontend/src/views/AnalysisView.vue +++ b/frontend/src/views/AnalysisView.vue @@ -331,7 +331,7 @@ async function addSectionAttachment(section, field, evidence) { const attachment = await inputDialog .confirmText('Add') .cancelText('Cancel') - .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png') + .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png, .gb') .url(includeComments, includeName) .prompt(); @@ -403,7 +403,7 @@ async function addSupportingEvidence() { const attachment = await inputDialog .confirmText('Add') .cancelText('Cancel') - .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png') + .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png, .gb') .url(includeComments, includeName) .prompt(); diff --git a/frontend/test/components/Dialogs/InputDialog.spec.js b/frontend/test/components/Dialogs/InputDialog.spec.js index 7e3e1bfe..d370c5ad 100644 --- a/frontend/test/components/Dialogs/InputDialog.spec.js +++ b/frontend/test/components/Dialogs/InputDialog.spec.js @@ -30,7 +30,7 @@ describe('InputDialog.vue', () => { inputDialog .confirmText('Add') .cancelText('Cancel') - .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png') + .file(includeComments, 'file', '.pdf, .jpg, .jpeg, .png, .gb') .url(includeComments, includeName) .message('Warning message') .prompt();