1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Add real updated timestamp to app table view

This commit is contained in:
Andrew Kingston 2021-05-24 14:11:45 +01:00
parent 270de9896c
commit c5d409d778
2 changed files with 8 additions and 3 deletions

View file

@ -9,8 +9,6 @@
StatusLight,
} from "@budibase/bbui"
import { gradient } from "actions"
import { auth } from "stores/portal"
import { AppStatus } from "constants"
import { processStringSync } from "@budibase/string-templates"
export let app

View file

@ -8,6 +8,7 @@
MenuItem,
StatusLight,
} from "@budibase/bbui"
import { processStringSync } from "@budibase/string-templates"
export let app
export let exportApp
@ -27,7 +28,13 @@
</div>
</div>
<div>
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}
</div>
<div>
<StatusLight