add export modal warning

This commit is contained in:
Peter Clement 2023-01-17 10:51:26 +00:00
parent 81a6286f42
commit e29a828abc
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<script>
import { ModalContent, Toggle, Body } from "@budibase/bbui"
import { ModalContent, Toggle, Body, InlineAlert } from "@budibase/bbui"
export let app
export let published
@ -16,6 +16,9 @@
</script>
<ModalContent {title} {confirmText} onConfirm={exportApp}>
<InlineAlert
header="Do not share your budibase application exports publicly as they may contain sensitive information such as database credentials or secret keys."
/>
<Body
>Apps can be exported with or without data that is within internal tables -
select this below.</Body

View File

@ -70,7 +70,8 @@
<Button on:click={modal.show} cta>Add Variable</Button>
</div>
{:else}
<div>
<Divider />
<div class="buttons">
<Button
primary
disabled={!$auth.accountPortalAccess && $admin.cloud}
@ -96,6 +97,10 @@
</Modal>
<style>
.buttons {
display: flex;
gap: var(--spacing-l);
}
.title {
display: flex;
flex-direction: row;