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.
Merge pull request galaxyproject#17037 from dannon/no-more-eventhub
Remove eventHub custom module, swap to appropriate alternatives.
- Loading branch information
Showing
10 changed files
with
97 additions
and
137 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
49 changes: 27 additions & 22 deletions
49
client/src/components/History/CurrentHistory/HistoryEmpty.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 |
---|---|---|
@@ -1,33 +1,38 @@ | ||
<script setup lang="ts"> | ||
import { useEventBus } from "@vueuse/core"; | ||
import { useGlobalUploadModal } from "@/composables/globalUploadModal"; | ||
import { localize } from "@/utils/localization"; | ||
const { emit } = useEventBus<string>("open-tool-section"); | ||
const props = withDefaults( | ||
defineProps<{ | ||
message?: string; | ||
writable?: boolean; | ||
}>(), | ||
{ | ||
message: "This history is empty.", | ||
writable: true, | ||
} | ||
); | ||
const { openGlobalUploadModal } = useGlobalUploadModal(); | ||
function clickDataLink() { | ||
emit("getext"); | ||
} | ||
</script> | ||
|
||
<template> | ||
<b-alert show> | ||
<h4 class="mb-1"> | ||
<i class="fa fa-info-circle empty-message"></i> | ||
<span>{{ message | l }}</span> | ||
<span>{{ localize(message) }}</span> | ||
</h4> | ||
<p v-if="writable"> | ||
<p v-if="props.writable"> | ||
<a v-localize href="#" @click.prevent="openGlobalUploadModal">You can load your own data</a> | ||
<span v-localize>or</span> | ||
<a v-localize href="#" @click.prevent="clickDataLink">get data from an external source</a>. | ||
</p> | ||
</b-alert> | ||
</template> | ||
|
||
<script> | ||
import { useGlobalUploadModal } from "composables/globalUploadModal"; | ||
export default { | ||
props: { | ||
message: { type: String, default: "This history is empty." }, | ||
writable: { type: Boolean, default: true }, | ||
}, | ||
setup() { | ||
const { openGlobalUploadModal } = useGlobalUploadModal(); | ||
return { openGlobalUploadModal }; | ||
}, | ||
methods: { | ||
clickDataLink() { | ||
this.eventHub.$emit("openToolSection", "getext"); | ||
}, | ||
}, | ||
}; | ||
</script> |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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,9 @@ | ||
import { defineStore } from "pinia"; | ||
import { ref } from "vue"; | ||
|
||
export const useUploadStore = defineStore("upload", () => { | ||
const percentage = ref<number>(0); | ||
const status = ref<string>(""); | ||
|
||
return { percentage, status }; | ||
}); |
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
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