add export modal warning
This commit is contained in:
parent
81a6286f42
commit
e29a828abc
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue