From 3dc148d0c370f726f824bcb5964f9823bd58e8a3 Mon Sep 17 00:00:00 2001 From: Bill Riehl Date: Tue, 18 Jun 2024 11:07:30 -0400 Subject: [PATCH 01/24] change JSON download to use the new export to staging app --- .../kbaseNarrativeDownloadPanel.js | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/kbase-extension/static/kbase/js/widgets/narrative_core/kbaseNarrativeDownloadPanel.js b/kbase-extension/static/kbase/js/widgets/narrative_core/kbaseNarrativeDownloadPanel.js index bafbb46e55..65a97bf2fc 100644 --- a/kbase-extension/static/kbase/js/widgets/narrative_core/kbaseNarrativeDownloadPanel.js +++ b/kbase-extension/static/kbase/js/widgets/narrative_core/kbaseNarrativeDownloadPanel.js @@ -109,6 +109,16 @@ define([ } ); }); + } else if (descr.name.toLocaleLowerCase() === 'json') { + $dlBtn.click(() => { + Jupyter.narrative.addAndPopulateApp( + 'kb_staging_exporter/export_json_to_staging', + 'dev', + { + input_ref: self.objName, + } + ); + }); } else { $dlBtn.click(() => { $btnTd.find('.kb-data-list-btn').prop('disabled', true); @@ -120,24 +130,11 @@ define([ const downloaders = self.prepareDownloaders(self.type); downloaders.forEach((dl) => addDownloader(dl)); + addDownloader({ + name: 'JSON', + local_function: '' + }); - $btnTd.append( - $('