From f5c9e22d422479c7d97a471b4fcb6e0f6ba29922 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 20 Oct 2022 11:46:04 +0100 Subject: [PATCH] fix paging and add deletion --- packages/bbui/src/Table/CellRenderer.svelte | 1 + packages/bbui/src/Table/Table.svelte | 1 + .../overview/backups/ActionsRenderer.svelte | 50 +++++++++++++++++-- .../backups/AutomationsRenderer.svelte | 2 +- .../portal/overview/backups/BackupsTab.svelte | 40 ++++++++++++--- .../backups/DatasourceRenderer.svelte | 2 +- .../overview/backups/DaysRenderer.svelte | 1 - .../overview/backups/ScreensRenderer.svelte | 2 +- packages/builder/src/stores/portal/backups.js | 40 +++++++-------- packages/frontend-core/src/api/backups.js | 16 ++++-- 10 files changed, 117 insertions(+), 38 deletions(-) diff --git a/packages/bbui/src/Table/CellRenderer.svelte b/packages/bbui/src/Table/CellRenderer.svelte index 246323244a..5004401d91 100644 --- a/packages/bbui/src/Table/CellRenderer.svelte +++ b/packages/bbui/src/Table/CellRenderer.svelte @@ -56,6 +56,7 @@ {schema} value={cellValue} on:clickrelationship + on:buttonclick > diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 01a2ca4835..7745c3c407 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -387,6 +387,7 @@ schema={schema[field]} value={deepGet(row, field)} on:clickrelationship + on:buttonclick > diff --git a/packages/builder/src/components/portal/overview/backups/ActionsRenderer.svelte b/packages/builder/src/components/portal/overview/backups/ActionsRenderer.svelte index 094a27bb1e..fa7b330a34 100644 --- a/packages/builder/src/components/portal/overview/backups/ActionsRenderer.svelte +++ b/packages/builder/src/components/portal/overview/backups/ActionsRenderer.svelte @@ -1,20 +1,64 @@
- Restore + Restore
- Delete + Delete + Edit
+ + Are you sure you wish to delete the backup + {row.name} + This action cannot be undone. + + + + Are you sure you wish to restore this backup + {row.name}. This action cannot be undone. + +