1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

Improve app export UX by immediately starting a download stream of the app export

This commit is contained in:
Andrew Kingston 2021-10-18 12:07:44 +01:00
parent c004290718
commit 6071526076

View file

@ -112,16 +112,8 @@
const exportApp = app => {
const id = app.deployed ? app.prodId : app.devId
try {
download(
`/api/backups/export?appId=${id}&appname=${encodeURIComponent(
app.name
)}`
)
notifications.success("App exported successfully")
} catch (err) {
notifications.error(`Error exporting app: ${err}`)
}
const appName = encodeURIComponent(app.name)
window.location = `/api/backups/export?appId=${id}&appname=${appName}`
}
const unpublishApp = app => {