|
1 | 1 | <script lang="ts">
|
2 | 2 | import { Alert, Button, Listgroup, Navbar, P, Spinner } from "flowbite-svelte";
|
3 |
| - import { Export, GetCheckedFiles} from '../../wailsjs/go/main/App.js'; |
| 3 | + import { Export, GetCheckedFiles, GetExportOptions } from '../../wailsjs/go/main/App.js'; |
4 | 4 | import { CheckOutline, ExclamationCircleOutline, FileLinesSolid, InfoCircleSolid } from "flowbite-svelte-icons";
|
5 | 5 | import { EventsOn } from "../../wailsjs/runtime/runtime.js";
|
6 | 6 | import { backend } from "../../wailsjs/go/models.js";
|
7 | 7 | type DocInfo = backend.DocInfo;
|
8 | 8 |
|
9 | 9 | let exportItems: DocInfo[] = $state([]);
|
10 | 10 | let exportItemState: {[key: string]: string;} = $state({});
|
| 11 | + let exportOptions: backend.RmExport = $state({}); |
11 | 12 |
|
12 | 13 | let errorMessage: string = $state("hello");
|
13 | 14 | let showError: boolean = $state(false);
|
|
18 | 19 | exportItems = result;
|
19 | 20 | });
|
20 | 21 |
|
| 22 | + GetExportOptions() |
| 23 | + .then((result: backend.RmExport) => { |
| 24 | + exportOptions = result; |
| 25 | + }); |
| 26 | +
|
21 | 27 | Export();
|
22 | 28 |
|
23 | 29 | const onRetry = () => {
|
|
64 | 70 | <Navbar color="blue" class="sticky top-0">
|
65 | 71 | <h1 class="font-bold m-auto">{finishedAllItems() ? "Success!" : "Export"}</h1>
|
66 | 72 | </Navbar>
|
67 |
| - |
| 73 | + |
68 | 74 | <main class="pr-7 pl-7 mt-3 w-full">
|
69 |
| - {#if exportItems.length > 0} |
| 75 | + |
| 76 | + <h2 class="text-md">Format: {exportOptions["Format"]}</h2> |
| 77 | + <h2 class="text-md mb-3">Location: {exportOptions["Location"]}</h2> |
| 78 | + |
| 79 | + {#if exportItems.length > 0} |
70 | 80 | <Listgroup items={exportItems} let:item active={false}>
|
71 | 81 | <div class="flex flex-row justify-start items-center w-full">
|
72 | 82 | <FileLinesSolid class="mr-1" size="lg" />
|
|
0 commit comments