forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor no items message out of collection creator for reuse.
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
client/src/components/Collections/common/CollectionCreatorNoItemsMessage.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script setup lang="ts"> | ||
import { BAlert, BLink } from "bootstrap-vue"; | ||
import localize from "@/utils/localization"; | ||
const emit = defineEmits<{ | ||
(e: "clicked-upload"): void; | ||
}>(); | ||
</script> | ||
<template> | ||
<BAlert variant="info" show> | ||
{{ localize("No items available to create a collection.") }} | ||
{{ localize("Exit and change your current history, or") }} | ||
<BLink class="text-decoration-none" @click.stop.prevent="emit('clicked-upload')"> | ||
{{ localize("Upload some datasets.") }} | ||
</BLink> | ||
</BAlert> | ||
</template> |