-
- {{errors.name}}
-
-
-
+
+
+
+
+
+ {{errors.brand}}
+
+
+
+
+
- Lorem
+ {{activeCamera.description}}
@@ -77,6 +77,9 @@ export default {
const schema = yup.object().shape({
name: yup.string()
.required("Name wird benötigt")
+ .trim(),
+ brand: yup.string()
+ .required("Makre wird benötigt")
.trim()
});
@@ -87,7 +90,7 @@ export default {
}
},
computed: {
- ...mapGetters(["activeCamera"]),
+ ...mapGetters(["activeCamera", "brands"]),
errorDisplayText() {
if(this.error) {
return "Es ist ein Fehler aufgetreten"
diff --git a/src/store/modules/camera/index.ts b/src/store/modules/camera/index.ts
index de79fd2..cc3a5f1 100644
--- a/src/store/modules/camera/index.ts
+++ b/src/store/modules/camera/index.ts
@@ -167,10 +167,10 @@ const actions = {
)
context.dispatch("fetchCameras");
- // context.dispatch("fetchBrands");
- // context.dispatch("fetchBuildTypes");
- // context.dispatch("fetchCondition");
- // context.commit("setInitialized", true);
+ context.dispatch("fetchBrands");
+ context.dispatch("fetchBuildTypes");
+ context.dispatch("fetchCondition");
+ context.commit("setInitialized", true);
}
};