From 31af7b9c69621a5cee8e571bb79ead6211ed2676 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 2 Aug 2022 11:16:35 +0100 Subject: [PATCH 1/4] Ensure the row key is unique even when the rows are sorted. --- .../src/components/common/AppLockModal.svelte | 116 +++++++++--------- .../src/components/start/AppRow.svelte | 5 +- .../pages/builder/portal/apps/index.svelte | 9 +- 3 files changed, 71 insertions(+), 59 deletions(-) diff --git a/packages/builder/src/components/common/AppLockModal.svelte b/packages/builder/src/components/common/AppLockModal.svelte index 5ca35f05db..cf8f17dbe9 100644 --- a/packages/builder/src/components/common/AppLockModal.svelte +++ b/packages/builder/src/components/common/AppLockModal.svelte @@ -6,6 +6,8 @@ Modal, notifications, ProgressCircle, + Layout, + Body, } from "@budibase/bbui" import { auth, apps } from "stores/portal" import { processStringSync } from "@budibase/string-templates" @@ -29,6 +31,7 @@ lockedBy && lockedByYou ? "Locked by you" : `Locked by ${lockIdentifer}` const getExpiryDuration = app => { + console.log("Testing") if (!app?.lockedBy?.lockedAt) { return -1 } @@ -72,62 +75,65 @@ {/if} - - -

- Apps are locked to prevent work from being lost from overlapping changes - between your team. -

- - {#if lockedByYou && getExpiryDuration(app) > 0} - - {processStringSync( - "This lock will expire in {{ duration time 'millisecond' }} from now.", - { - time: getExpiryDuration(app), - } - )} - - {/if} -
- - - {#if lockedByYou} - +
+ + + + + Apps are locked to prevent work from being lost from overlapping + changes between your team. + + {#if lockedByYou && getExpiryDuration(app) > 0} + + {processStringSync( + "This lock will expire in {{ duration time 'millisecond' }} from now. This lock will expire in This lock will expire in ", + { + time: getExpiryDuration(app), + } + )} + {/if} - -
- - +
+ + + {#if lockedByYou} + + {/if} + +
+ + + +