Skip to content

Commit

Permalink
Update ExportToRemoteModal.vue to use TypeScript and fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Aug 15, 2024
1 parent 6e98bc8 commit 4f7985e
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 4f7985e

Please sign in to comment.