diff --git a/packages/builder/src/pages/builder/apps/index.svelte b/packages/builder/src/pages/builder/apps/index.svelte index 7311c112b8..5fb75a43be 100644 --- a/packages/builder/src/pages/builder/apps/index.svelte +++ b/packages/builder/src/pages/builder/apps/index.svelte @@ -2,7 +2,6 @@ import { Heading, Layout, - Select, Divider, ActionMenu, MenuItem, @@ -19,6 +18,7 @@ import { gradient } from "actions" import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte" import ChangePasswordModal from "components/settings/ChangePasswordModal.svelte" + import { processStringSync } from "@budibase/string-templates" let loaded = false let userInfoModal @@ -83,7 +83,18 @@
{app.name} - Updated {Math.round(Math.random() * 10 + 1)} months ago + {#if app.updatedAt} + {processStringSync( + "Updated {{ duration time 'millisecond' }} ago", + { + time: + new Date().getTime() - + new Date(app.updatedAt).getTime(), + } + )} + {:else} + Never updated + {/if}