Add real updated timestamp to app table view
This commit is contained in:
parent
270de9896c
commit
c5d409d778
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue