diff --git a/src/lara-app/components/runtime.tsx b/src/lara-app/components/runtime.tsx index ac4a5be..f3391f2 100644 --- a/src/lara-app/components/runtime.tsx +++ b/src/lara-app/components/runtime.tsx @@ -225,17 +225,19 @@ export const RuntimeComponent = ({ // of the container changes const height = showQrContainer ? 675 : "auto"; + const showImportButton = !reportOrPreviewMode; + const showDownloadCSVButton = !!experimentData; + return (
- {!previewMode ? undefined : + {previewMode && !reportMode &&
You are viewing a preview of the activity. NO DATA IS BEING SAVED!
} - {reportOrPreviewMode ? undefined : -
-
Import
- {experimentData &&
Download CSV
} -
} + {(showImportButton || showDownloadCSVButton) ?
+ {showImportButton &&
Import
} + {showDownloadCSVButton &&
Download CSV
} +
: undefined}