mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
Client: Show used/remaining length in spool show
This commit is contained in:
1 parent
0631c5f7a1
commit
130aed4ed6
1 file changed
+18
@@ -49,6 +49,24 @@ export const SpoolShow: React.FC<IResourceComponentsProps> = () => {
|
||||
) : (
|
||||
<>{filamentData?.data?.id}</>
|
||||
)} */}
|
||||
<Title level={5}>{t("spool.fields.remaining_length")}</Title>
|
||||
<NumberFieldUnit
|
||||
value={record?.remaining_length ?? ""}
|
||||
unit="mm"
|
||||
options={{
|
||||
maximumFractionDigits: 1,
|
||||
minimumFractionDigits: 1,
|
||||
}}
|
||||
/>
|
||||
<Title level={5}>{t("spool.fields.used_length")}</Title>
|
||||
<NumberFieldUnit
|
||||
value={record?.used_length ?? ""}
|
||||
unit="mm"
|
||||
options={{
|
||||
maximumFractionDigits: 1,
|
||||
minimumFractionDigits: 1,
|
||||
}}
|
||||
/>
|
||||
<Title level={5}>{t("spool.fields.remaining_weight")}</Title>
|
||||
<NumberFieldUnit
|
||||
value={record?.remaining_weight ?? ""}
|
||||
|
||||
Reference in new issue
Block a user