Skip to content

Commit

Permalink
Upload on empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Dec 3, 2024
1 parent f5e146d commit fb628ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/components/Collections/CollectionCreatorModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { computed, ref, watch } from "vue";
import type { HDASummary, HistoryItemSummary, HistorySummary } from "@/api";
import { createDatasetCollection } from "@/components/History/model/queries";
import { useGlobalUploadModal } from "@/composables/globalUploadModal.js";
import { useCollectionBuilderItemsStore } from "@/stores/collectionBuilderItemsStore";
import { useHistoryStore } from "@/stores/historyStore";
import localize from "@/utils/localization";
Expand All @@ -20,6 +21,8 @@ import Heading from "@/components/Common/Heading.vue";
import GenericItem from "@/components/History/Content/GenericItem.vue";
import LoadingSpan from "@/components/LoadingSpan.vue";
const { openGlobalUploadModal } = useGlobalUploadModal();
interface Props {
historyId: string;
showModal: boolean;
Expand Down Expand Up @@ -262,6 +265,9 @@ function resetModal() {
</BAlert>
<BAlert v-else-if="!creatorItems?.length" variant="info" show>
{{ localize("No items available to create a collection.") }}
<BLink class="text-decoration-none" @click.stop.prevent="openGlobalUploadModal">
Upload some datasets and try again.
</BLink>
</BAlert>
<BAlert v-else-if="creatingCollection" variant="info" show>
<LoadingSpan :message="localize('Creating collection')" />
Expand Down

0 comments on commit fb628ae

Please sign in to comment.