2022-05-25 20:26:10 +12:00
|
|
|
<script>
|
|
|
|
import { ModalContent, Toggle } from "@budibase/bbui"
|
|
|
|
|
|
|
|
export let app
|
2022-06-07 02:17:14 +12:00
|
|
|
let excludeRows = false
|
2022-05-25 20:26:10 +12:00
|
|
|
|
|
|
|
const exportApp = () => {
|
|
|
|
const id = app.deployed ? app.prodId : app.devId
|
|
|
|
const appName = encodeURIComponent(app.name)
|
2022-06-07 02:17:14 +12:00
|
|
|
window.location = `/api/backups/export?appId=${id}&appname=${appName}&excludeRows=${excludeRows}`
|
2022-05-25 20:26:10 +12:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<ModalContent title={"Export"} confirmText={"Export"} onConfirm={exportApp}>
|
2022-06-07 02:17:14 +12:00
|
|
|
<Toggle text="Exclude Rows" bind:value={excludeRows} />
|
2022-05-25 20:26:10 +12:00
|
|
|
</ModalContent>
|