prevent save numbers as string, fix #5

This commit is contained in:
Jonathan Baecker 2020-05-08 13:16:41 +02:00
parent f5ba8bb4a0
commit c70a5ad391

View File

@ -91,7 +91,7 @@
<b-form-input
v-else-if="prop && prop.toString().match(/^-?\d+[.,]\d+$/)"
:id="name"
v-model="configPlayout[key][name]"
v-model.number="configPlayout[key][name]"
type="number"
step="0.001"
class="input-field"
@ -99,7 +99,7 @@
<b-form-input
v-else-if="prop && !isNaN(prop)"
:id="name"
v-model="configPlayout[key][name]"
v-model.number="configPlayout[key][name]"
type="number"
step="1"
class="input-field"