Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ui/src/components/project/datasets/DatasetDownloadModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ const props = defineProps({
type: Object,
default: () => ({}),
},
projectSlug: {
type: String,
default: null,
},
});
// const emit = defineEmits(["update"]);

Expand All @@ -154,6 +158,10 @@ defineExpose({
});

const downloadURL = computed(() => {
// when projectSlug is present, open the filebrowser within the project context
if(props.projectSlug) {
return `${window.location.origin}/projects/${props.projectSlug}/datasets/${props.dataset.id}/filebrowser`;
}
return `${window.location.origin}/datasets/${props.dataset?.id}/filebrowser`;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
/>

<!-- Download Modal -->
<DatasetDownloadModal ref="downloadModal" :dataset="datasetToDownload" />
<DatasetDownloadModal ref="downloadModal" :dataset="datasetToDownload" :project-slug="props.project?.slug" />

<!-- Stage Modal -->
<StageDatasetModal
Expand Down