Browse Source
Merge pull request #1691 from Budibase/fix/recent-bugs
fix feedback notification panel, prevent MinIO bucket from being deleted
pull/1712/head
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
15 additions and
2 deletions
-
packages/builder/src/components/deploy/DeployModal.svelte
-
packages/builder/src/pages/builder/portal/apps/index.svelte
-
packages/server/src/api/controllers/application.js
|
|
|
@ -98,6 +98,16 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<Button secondary on:click={publishModal.show}>Publish</Button> |
|
|
|
<Modal bind:this={feedbackModal}> |
|
|
|
<ModalContent |
|
|
|
title="Enjoying Budibase?" |
|
|
|
size="L" |
|
|
|
showConfirmButton={false} |
|
|
|
showCancelButton={false} |
|
|
|
> |
|
|
|
<FeedbackIframe on:finished={feedbackModal.hide} /> |
|
|
|
</ModalContent> |
|
|
|
</Modal> |
|
|
|
<Modal bind:this={publishModal}> |
|
|
|
<ModalContent |
|
|
|
title="Publish to Production" |
|
|
|
|
|
|
|
@ -127,7 +127,9 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
try { |
|
|
|
const response = await del(`/api/applications/${selectedApp.prodId}`) |
|
|
|
const response = await del( |
|
|
|
`/api/applications/${selectedApp.prodId}?unpublish=1` |
|
|
|
) |
|
|
|
if (response.status !== 200) { |
|
|
|
const json = await response.json() |
|
|
|
throw json.message |
|
|
|
|
|
|
|
@ -245,9 +245,10 @@ exports.update = async function (ctx) { |
|
|
|
|
|
|
|
exports.delete = async function (ctx) { |
|
|
|
const db = new CouchDB(ctx.params.appId) |
|
|
|
|
|
|
|
const result = await db.destroy() |
|
|
|
/* istanbul ignore next */ |
|
|
|
if (!env.isTest()) { |
|
|
|
if (!env.isTest() && !ctx.query.unpublish) { |
|
|
|
await deleteApp(ctx.params.appId) |
|
|
|
} |
|
|
|
// make sure the app/role doesn't stick around after the app has been deleted
|
|
|
|
|