diff --git a/packages/builder/assets/backups-default.png b/packages/builder/assets/backups-default.png new file mode 100644 index 0000000000..6e37cbb6c7 Binary files /dev/null and b/packages/builder/assets/backups-default.png differ diff --git a/packages/builder/src/components/portal/overview/backups/BackupsTab.svelte b/packages/builder/src/components/portal/overview/backups/BackupsTab.svelte index cb20013b9b..a8c679a5d8 100644 --- a/packages/builder/src/components/portal/overview/backups/BackupsTab.svelte +++ b/packages/builder/src/components/portal/overview/backups/BackupsTab.svelte @@ -1,17 +1,23 @@
- - - {#if backupData}
- {/if} - + + {:else if !backupData} + +
+ BackupsDefault + + You have no backups yet +
+ You can manually backup your app any time +
+
+ +
+
+
+
+ {/if} @@ -242,4 +309,21 @@ flex: 1; gap: var(--spacing-xl); } + + .title { + display: flex; + flex-direction: row; + align-items: center; + gap: var(--spacing-m); + } + + .align { + margin-top: 5%; + text-align: center; + } + + .pro-buttons { + display: flex; + gap: var(--spacing-m); + } diff --git a/packages/builder/src/stores/portal/licensing.js b/packages/builder/src/stores/portal/licensing.js index 179dac9689..59a1622c9f 100644 --- a/packages/builder/src/stores/portal/licensing.js +++ b/packages/builder/src/stores/portal/licensing.js @@ -14,6 +14,7 @@ export const createLicensingStore = () => { isFreePlan: true, // features groupsEnabled: false, + backupsEnabled: false, // the currently used quotas from the db quotaUsage: undefined, // derived quota metrics for percentages used @@ -56,12 +57,17 @@ export const createLicensingStore = () => { const groupsEnabled = license.features.includes( Constants.Features.USER_GROUPS ) + const backupsEnabled = license.features.includes( + Constants.Features.BACKUPS + ) + store.update(state => { return { ...state, license, isFreePlan, groupsEnabled, + backupsEnabled, } }) }, diff --git a/packages/frontend-core/src/constants.js b/packages/frontend-core/src/constants.js index 9a5acf8a9b..1eed492c25 100644 --- a/packages/frontend-core/src/constants.js +++ b/packages/frontend-core/src/constants.js @@ -113,6 +113,7 @@ export const ApiVersion = "1" export const Features = { USER_GROUPS: "userGroups", + BACKUPS: "appBackups", } // Role IDs