diff --git a/src/components/management/EditJobSlot.vue b/src/components/management/EditJobSlot.vue
index 097231c..406382d 100644
--- a/src/components/management/EditJobSlot.vue
+++ b/src/components/management/EditJobSlot.vue
@@ -40,12 +40,12 @@
:rules="[notEmpty]"
/>
form.value?.validate() || Promise.resolve(true),
});
+ function minOneService(val: number) {
+ return parseInt(val) > 0 || 'Mindestens ein Dienst nötig';
+ }
+
return {
form,
formatStartEnd,
@@ -141,6 +145,7 @@ export default defineComponent({
job,
jobtypes,
notEmpty,
+ minOneService,
typeName,
};
},