mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-07 07:43:39 +01:00
fileflows code cleanup
This commit is contained in:
parent
6bb94dc185
commit
598815ba5c
@ -25,21 +25,13 @@ export default function Component({ service }) {
|
|||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function fromTime(value) {
|
|
||||||
if (!value) {
|
|
||||||
fileflowsData.time = "0:00";
|
|
||||||
return fileflowsData.time;
|
|
||||||
}
|
|
||||||
return fileflowsData.time;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="queue" value={t("common.number", { value: fileflowsData.queue })} />
|
<Block label="queue" value={t("common.number", { value: fileflowsData.queue })} />
|
||||||
<Block label="processing" value={t("common.number", { value: fileflowsData.processing })} />
|
<Block label="processing" value={t("common.number", { value: fileflowsData.processing })} />
|
||||||
<Block label="processed" value={t("common.number", { value: fileflowsData.processed })} />
|
<Block label="processed" value={t("common.number", { value: fileflowsData.processed })} />
|
||||||
<Block label="time" value={fromTime(fileflowsData.time)} />
|
<Block label="time" value={fileflowsData.time?.length ? fileflowsData.time : "0:00"} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user