From cab184eb95f904d8621cb63f0dbe9679ea8e3a92 Mon Sep 17 00:00:00 2001 From: guerler Date: Fri, 27 Aug 2021 16:28:18 -0400 Subject: [PATCH] Show PDF and HTML content as embedded frames in pages, increase maximum content size to 20rem --- .../Elements/HistoryDatasetDisplay.vue | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue index cf2836efef4..147a27f4c78 100644 --- a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue +++ b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue @@ -37,11 +37,14 @@
{{ error }}
-
-
-                                {{ itemContent.item_data }}
-                            
-
+ +
+
+
+                                {{ itemContent.item_data }}
+                            
No content found.
Show More... @@ -92,9 +98,9 @@ export default { }, }, computed: { - notTabular() { + datasetType() { const dataset = this.datasets[this.args.history_dataset_id]; - return dataset && dataset.ext != "tabular"; + return dataset.ext; }, datasetName() { const dataset = this.datasets[this.args.history_dataset_id]; @@ -103,6 +109,9 @@ export default { downloadUrl() { return `${getAppRoot()}dataset/display?dataset_id=${this.args.history_dataset_id}`; }, + displayUrl() { + return `${getAppRoot()}datasets/${this.args.history_dataset_id}/display`; + }, importUrl() { return `${getAppRoot()}dataset/imp?dataset_id=${this.args.history_dataset_id}`; }, @@ -149,6 +158,6 @@ export default {