Correction for deployment application references.
This commit is contained in:
parent
8b8baf9bdd
commit
64d4ea1533
|
@ -58,13 +58,13 @@
|
||||||
|
|
||||||
const viewApp = () => {
|
const viewApp = () => {
|
||||||
analytics.captureEvent(Events.APP.VIEW_PUBLISHED, {
|
analytics.captureEvent(Events.APP.VIEW_PUBLISHED, {
|
||||||
appId: application.appId,
|
appId: selectedApp.appId,
|
||||||
eventSource: EventSource.PORTAL,
|
eventSource: EventSource.PORTAL,
|
||||||
})
|
})
|
||||||
if (application.url) {
|
if (selectedApp.url) {
|
||||||
window.open(`/app${application.url}`)
|
window.open(`/app${selectedApp.url}`)
|
||||||
} else {
|
} else {
|
||||||
window.open(`/${application.prodId}`)
|
window.open(`/${selectedApp.prodId}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,9 +80,9 @@
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
analytics.captureEvent(Events.APP.UNPUBLISHED, {
|
analytics.captureEvent(Events.APP.UNPUBLISHED, {
|
||||||
appId: application.appId,
|
appId: selectedApp.appId,
|
||||||
})
|
})
|
||||||
await API.unpublishApp(application.prodId)
|
await API.unpublishApp(selectedApp.prodId)
|
||||||
await apps.load()
|
await apps.load()
|
||||||
notifications.success("App unpublished successfully")
|
notifications.success("App unpublished successfully")
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue