diff --git a/packages/builder/src/pages/builder/app/[application]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/_layout.svelte index 22184d93a5..5547b2c6aa 100644 --- a/packages/builder/src/pages/builder/app/[application]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/_layout.svelte @@ -33,7 +33,7 @@ let promise = getPackage() let unpublishModal let publishPopover - // let notPublishedPopover + let notPublishedPopover $: enrichedApps = enrichApps($apps, $auth.user) const enrichApps = (apps, user) => { @@ -224,47 +224,69 @@ - -
- -
- - Your app is live! -
- {#if isPublished} - {processStringSync( - "Last Published: {{ duration time 'millisecond' }} ago", - { - time: - new Date().getTime() - - new Date(latestDeployments[0].updatedAt).getTime(), - } - )} - {/if} -
-
- - + />
-
-
+ + Your app is live! +
+ {#if isPublished} + {processStringSync( + "Last Published: {{ duration time 'millisecond' }} ago", + { + time: + new Date().getTime() - + new Date(latestDeployments[0].updatedAt).getTime(), + } + )} + {/if} +
+
+ + +
+
+ + {/if} + + {#if !isPublished} + +
{ + notPublishedPopover.show() + }} + on:mouseout={() => { + notPublishedPopover.hide() + }} + on:blur={() => void 0} + disabled={true} + > + +
+ This app has not been published yet +
+ {/if}