From 82b75c5a6ca987b0679932dd157071238c99add0 Mon Sep 17 00:00:00 2001 From: GeorgeC Date: Tue, 6 Feb 2024 14:17:53 -0500 Subject: [PATCH] [ALS-5883] Allow optional override of download modal message --- .../src/main/webapp/picsureui/search-interface/package-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biodatacatalyst-ui/src/main/webapp/picsureui/search-interface/package-view.js b/biodatacatalyst-ui/src/main/webapp/picsureui/search-interface/package-view.js index 056f6818..6d77e599 100644 --- a/biodatacatalyst-ui/src/main/webapp/picsureui/search-interface/package-view.js +++ b/biodatacatalyst-ui/src/main/webapp/picsureui/search-interface/package-view.js @@ -301,7 +301,7 @@ define([ $('.close')?.get(0).click(); }, classes: "btn btn-primary"} ]; - const message = 'You are transferring data through the BioData Catalyst security boundary which may or may not be supported by your Data Use Agreement(s), Limitation(s), or your Institutional Review Board policies and guidelines. As a BioData Catalyst user, you are solely responsible for adhering to the terms of these policies.'; + let message = settings?.downloadConfirmationMessage ?? 'You are transferring data through the BioData Catalyst security boundary which may or may not be supported by your Data Use Agreement(s), Limitation(s), or your Institutional Review Board policies and guidelines. As a BioData Catalyst user, you are solely responsible for adhering to the terms of these policies.'; const dialogView = new dialog({options: dialogOptions, messages: [message], previousView: {view: this, title: 'Review and Package Data', model: this.model}}); modal.displayModal(dialogView, 'Are you sure you want to download data?', function(){ $('#package-download-button').focus();