diff --git a/src/components/camera/CameraEditDetail.vue b/src/components/camera/CameraEditDetail.vue index b0b25a3..1b2a951 100644 --- a/src/components/camera/CameraEditDetail.vue +++ b/src/components/camera/CameraEditDetail.vue @@ -33,15 +33,42 @@ -
+
+
+ +
+ +
- {{errors.brand}} +
+
+
+ +
+
+ + + {{errors.condition}} + +
+
+
+
+ +
+
+ + + {{errors.buildtype}} + +
+
@@ -76,11 +103,18 @@ export default { data() { const schema = yup.object().shape({ name: yup.string() - .required("Name wird benötigt") - .trim(), + .required("Name wird benötigt") + .trim(), brand: yup.string() - .required("Makre wird benötigt") - .trim() + .required("Marke wird benötigt") + .trim(), + condition: yup.string() + .required("Zustand wird benötigt") + .trim(), + buildtype: yup.string() + .required("Bauform wird benötigt") + .trim(), + }); return { @@ -90,7 +124,7 @@ export default { } }, computed: { - ...mapGetters(["activeCamera", "brands"]), + ...mapGetters(["activeCamera", "brands", "conditions", "buildtypes"]), errorDisplayText() { if(this.error) { return "Es ist ein Fehler aufgetreten"