mirror of
https://github.com/smartyellow/status.git
synced 2025-07-19 12:54:04 +00:00
esfix
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
let hasData = false;
|
||||
|
||||
function tileProps(service) {
|
||||
let props = {
|
||||
const props = {
|
||||
title: service.name.en,
|
||||
subtitle: service.cluster,
|
||||
date: service.lastBeat?.date ? new Date(service.lastBeat.date) : undefined,
|
||||
@ -87,7 +87,9 @@
|
||||
|
||||
settings.subscribe(s => {
|
||||
size = (s.cols || 4) * (s.rows || 3);
|
||||
if (hasData) organiseGrid();
|
||||
if (hasData) {
|
||||
organiseGrid();
|
||||
}
|
||||
});
|
||||
|
||||
return () => clearInterval(clockInterval);
|
||||
|
@ -14,13 +14,13 @@
|
||||
}) : '';
|
||||
|
||||
onMount(() => {
|
||||
if (since) {
|
||||
function updateDuration() {
|
||||
formattedDuration = formatDuration(
|
||||
new Date().getTime() - since.getTime()
|
||||
);
|
||||
}
|
||||
function updateDuration() {
|
||||
formattedDuration = formatDuration(
|
||||
new Date().getTime() - since.getTime()
|
||||
);
|
||||
}
|
||||
|
||||
if (since) {
|
||||
updateDuration();
|
||||
const interval = setInterval(updateDuration, 100);
|
||||
return () => clearInterval(interval);
|
||||
|
Reference in New Issue
Block a user