frontend/src/modals/Export.svelte
raw| 1 | <script lang="ts"> |
| 2 | import { urlFor } from "../helpers"; |
| 3 | import { _ } from "../i18n"; |
| 4 | import { urlHash } from "../stores/url"; |
| 5 | import ModalBase from "./ModalBase.svelte"; |
| 6 | |
| 7 | let shown = $derived($urlHash === "export"); |
| 8 | </script> |
| 9 | |
| 10 | <ModalBase {shown}> |
| 11 | {#if shown} |
| 12 | <div> |
| 13 | <h3>{_("Export")}:</h3> |
| 14 | <a href={$urlFor("download-journal")} data-remote> |
| 15 | {_("Download currently filtered entries as a Beancount file")} |
| 16 | </a> |
| 17 | </div> |
| 18 | {/if} |
| 19 | </ModalBase> |