-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace export logic in InvocationExportPluginCard
This will improve the export experience when the process is long so the user can navigate away from the page and still see the progress of the export or be able to download the result when it's ready. - Remove the ExportToRemoteButton and the StsDownloadButton and replace them with a simpler ExportButton that only reacts to the busy state. - Add 2 persistent progress trackers (alert) one for each type of export task.
- Loading branch information
Showing
3 changed files
with
110 additions
and
71 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
client/src/components/Workflow/Invocation/Export/ExportButton.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,32 @@ | ||
<script setup lang="ts"> | ||
import { IconDefinition, library } from "@fortawesome/fontawesome-svg-core"; | ||
import { faSpinner } from "@fortawesome/free-solid-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | ||
import { BButton } from "bootstrap-vue"; | ||
import { computed } from "vue"; | ||
library.add(faSpinner); | ||
interface Props { | ||
title: string; | ||
idleIcon: IconDefinition; | ||
isBusy?: boolean; | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
isBusy: false, | ||
}); | ||
const disabled = computed(() => props.isBusy); | ||
const emit = defineEmits(["onClick"]); | ||
</script> | ||
|
||
<template> | ||
<span v-b-tooltip.hover.bottom :title="title"> | ||
<BButton :disabled="disabled" @click="() => emit('onClick')"> | ||
<FontAwesomeIcon v-if="isBusy" :icon="faSpinner" spin /> | ||
<FontAwesomeIcon v-else :icon="idleIcon" /> | ||
</BButton> | ||
</span> | ||
</template> |
49 changes: 0 additions & 49 deletions
49
client/src/components/Workflow/Invocation/Export/ExportToRemoteButton.vue
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