Tab Betriebsmittel: change type kaution to text, edit validations and add translations

This commit is contained in:
ma0068
2025-08-01 10:55:11 +02:00
parent 562eb0a890
commit 1cb637cb7f
3 changed files with 48 additions and 20 deletions
@@ -290,12 +290,6 @@ export default {
this.formData.anmerkung = null;
this.formData.beschreibung = null;
this.statusNew = true;
},
//helper function: workaround to trigger validation if input is not a number
normalizeKaution() {
if (this.formData.kaution === null || this.formData.kaution === '') {
this.formData.kaution = 'xxx'
}
}
},
created() {
@@ -406,10 +400,9 @@ export default {
<div class="row mb-3">
<form-input
type="number"
type="text"
:label="$p.t('infocenter/kaution')"
name="kaution"
@blur="normalizeKaution"
v-model="formData.kaution"
>
</form-input>