From b144d0cc197311fad024cd795982eb6e024c6a13 Mon Sep 17 00:00:00 2001 From: Thomas Mack Date: Mon, 28 Mar 2022 09:29:36 +0200 Subject: [PATCH] select Brand --- src/components/camera/CameraEditDetail.vue | 48 ++++++++++++++++++---- 1 file changed, 41 insertions(+), 7 deletions(-) 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"