diff --git a/packages/bbui/src/Actions/position_dropdown.js b/packages/bbui/src/Actions/position_dropdown.js
index 6c4fcab757..21635592d2 100644
--- a/packages/bbui/src/Actions/position_dropdown.js
+++ b/packages/bbui/src/Actions/position_dropdown.js
@@ -155,6 +155,8 @@ export default function positionDropdown(element, opts) {
applyXStrategy(Strategies.StartToEnd)
} else if (align === "left-outside") {
applyXStrategy(Strategies.EndToStart)
+ } else if (align === "center") {
+ applyXStrategy(Strategies.MidPoint)
} else {
applyXStrategy(Strategies.StartToStart)
}
diff --git a/packages/builder/src/components/common/EditableIcon.svelte b/packages/builder/src/components/common/EditableIcon.svelte
index 776fab5307..6c0986e601 100644
--- a/packages/builder/src/components/common/EditableIcon.svelte
+++ b/packages/builder/src/components/common/EditableIcon.svelte
@@ -7,6 +7,7 @@
export let app
export let color
export let autoSave = false
+ export let disabled = false
let modal
@@ -14,12 +15,16 @@
-
-
-
-
+ {#if !disabled}
+
+
+
+
+
+
+ {:else}
-
+ {/if}
diff --git a/packages/builder/src/components/common/UpdateAppForm.svelte b/packages/builder/src/components/common/UpdateAppForm.svelte
new file mode 100644
index 0000000000..0e07c5c918
--- /dev/null
+++ b/packages/builder/src/components/common/UpdateAppForm.svelte
@@ -0,0 +1,214 @@
+
+
+
+
+
diff --git a/packages/builder/src/components/common/UpdateAppTopNav.svelte b/packages/builder/src/components/common/UpdateAppTopNav.svelte
new file mode 100644
index 0000000000..f4a76c4576
--- /dev/null
+++ b/packages/builder/src/components/common/UpdateAppTopNav.svelte
@@ -0,0 +1,68 @@
+
+
+
+
+
+
{
+ formPopover.show()
+ }}
+ >
+
+
+
+
+
+
+
+ {
+ formPopoverOpen = false
+ }}
+ on:open={() => {
+ formPopoverOpen = true
+ }}
+>
+
+
+ {
+ formPopover.hide()
+ }}
+ />
+
+
+
+
+
diff --git a/packages/builder/src/components/deploy/AppActions.svelte b/packages/builder/src/components/deploy/AppActions.svelte
index 105d1ed958..bb950983a6 100644
--- a/packages/builder/src/components/deploy/AppActions.svelte
+++ b/packages/builder/src/components/deploy/AppActions.svelte
@@ -8,13 +8,11 @@
ActionButton,
Icon,
Link,
- Modal,
StatusLight,
AbsTooltip,
} from "@budibase/bbui"
import RevertModal from "components/deploy/RevertModal.svelte"
import VersionModal from "components/deploy/VersionModal.svelte"
- import UpdateAppModal from "components/start/UpdateAppModal.svelte"
import { processStringSync } from "@budibase/string-templates"
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
import analytics, { Events, EventSource } from "analytics"
@@ -26,7 +24,6 @@
isOnlyUser,
appStore,
deploymentStore,
- initialise,
sortedScreens,
} from "stores/builder"
import TourWrap from "components/portal/onboarding/TourWrap.svelte"
@@ -37,7 +34,6 @@
export let loaded
let unpublishModal
- let updateAppModal
let revertModal
let versionModal
let appActionPopover
@@ -61,11 +57,6 @@
$: canPublish = !publishing && loaded && $sortedScreens.length > 0
$: lastDeployed = getLastDeployedString($deploymentStore, lastOpened)
- const initialiseApp = async () => {
- const applicationPkg = await API.fetchAppPackage($appStore.devId)
- await initialise(applicationPkg)
- }
-
const getLastDeployedString = deployments => {
return deployments?.length
? processStringSync("Published {{ duration time 'millisecond' }} ago", {
@@ -247,16 +238,12 @@
appActionPopover.hide()
if (isPublished) {
viewApp()
- } else {
- updateAppModal.show()
}
}}
>
{$appStore.url}
{#if isPublished}
- {:else}
-
{/if}