You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/09/10 22:38:11 UTC
[airavata-django-portal] 02/02: AIRAVATA-3187 eval javascript if
provided
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 0f4742ec1f081d8efa1491e353ded917dbb83c35
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Sep 10 18:37:52 2019 -0400
AIRAVATA-3187 eval javascript if provided
---
.../js/components/experiment/output-displays/HtmlOutputDisplay.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/HtmlOutputDisplay.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/HtmlOutputDisplay.vue
index 1d6b76f..dd1243f 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/HtmlOutputDisplay.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/HtmlOutputDisplay.vue
@@ -35,7 +35,10 @@ export default {
"experiment-output-name": this.experimentOutput.name,
"provider-id": this.providerId
}).then(data => {
- this.rawOutput = data.output
+ this.rawOutput = data.output;
+ if (data.js) {
+ eval(data.js);
+ }
})
}
};