Skip to content

Commit

Permalink
Merge pull request galaxyproject#18706 from davelopez/convert_export_…
Browse files Browse the repository at this point in the history
…remote_modal_ts

Update ExportToRemoteModal.vue to use TypeScript
  • Loading branch information
bgruening committed Aug 15, 2024
2 parents 6e98bc8 + 4f7985e commit 23f946e
Showing 1 changed file with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
<script setup>
<script setup lang="ts">
import { BModal } from "bootstrap-vue";
import ExportForm from "components/Common/ExportForm";
import { computed, ref } from "vue";
import { InvocationExportPlugin } from "./model";
import { type InvocationExportPlugin } from "./model";
const modal = ref(null);
import ExportForm from "@/components/Common/ExportForm.vue";
const props = defineProps({
exportPlugin: { type: InvocationExportPlugin, required: true },
invocationId: { type: String, required: true },
});
const modal = ref<BModal>();
const emit = defineEmits(["onExportToFileSource"]);
interface Props {
exportPlugin: InvocationExportPlugin;
invocationId: string;
}
const props = defineProps<Props>();
const emit = defineEmits<{
(e: "onExportToFileSource", exportDirectory: string, fileName: string): void;
}>();
const title = computed(() => `Export ${props.exportPlugin.title} to remote file source`);
/** Opens the modal dialog. */
function showModal() {
modal.value.show();
modal.value?.show();
}
/** Closes the modal dialog. */
function hideModal() {
modal.value.hide();
modal.value?.hide();
}
function doExport(exportDirectory, fileName) {
function doExport(exportDirectory: string, fileName: string) {
emit("onExportToFileSource", exportDirectory, fileName);
}
Expand Down

0 comments on commit 23f946e

Please sign in to comment.