mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
TSK-404 Add number value check in editor (#2367)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@
|
||||
|
||||
<Card
|
||||
label={tracker.string.TimeSpendReportAdd}
|
||||
canSave={data.value !== 0}
|
||||
canSave={Number.isFinite(data.value) && data.value !== 0}
|
||||
okAction={create}
|
||||
on:close
|
||||
okLabel={value === undefined ? presentation.string.Create : presentation.string.Save}
|
||||
|
||||
Reference in New Issue
Block a user