Add real updated timestamp to app table view

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

View File

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

View File

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