Improve app export UX by immediately starting a download stream of the app export
This commit is contained in:
parent
e21e1d10e1
commit
75c2f45cf1
|
@ -112,16 +112,8 @@
|
||||||
|
|
||||||
const exportApp = app => {
|
const exportApp = app => {
|
||||||
const id = app.deployed ? app.prodId : app.devId
|
const id = app.deployed ? app.prodId : app.devId
|
||||||
try {
|
const appName = encodeURIComponent(app.name)
|
||||||
download(
|
window.location = `/api/backups/export?appId=${id}&appname=${appName}`
|
||||||
`/api/backups/export?appId=${id}&appname=${encodeURIComponent(
|
|
||||||
app.name
|
|
||||||
)}`
|
|
||||||
)
|
|
||||||
notifications.success("App exported successfully")
|
|
||||||
} catch (err) {
|
|
||||||
notifications.error(`Error exporting app: ${err}`)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const unpublishApp = app => {
|
const unpublishApp = app => {
|
||||||
|
|
Loading…
Reference in New Issue