remove random colors

This commit is contained in:
Hayden 2021-01-05 17:13:04 -09:00
parent 2f30d28138
commit e662e43288

View File

@ -27,22 +27,22 @@
export default { export default {
props: { props: {
buttonText: String, buttonText: String,
value: String value: String,
}, },
data() { data() {
return { return {
dialog: false, dialog: false,
themeName: "", themeName: "",
rules: { rules: {
required: val => !!val || "Required." required: (val) => !!val || "Required.",
} },
}; };
}, },
watch: { watch: {
color() { color() {
this.updateColor(); this.updateColor();
} },
}, },
methods: { methods: {
randomColor() { randomColor() {
@ -52,20 +52,20 @@ export default {
const newTheme = { const newTheme = {
name: this.themeName, name: this.themeName,
colors: { colors: {
primary: this.randomColor(), primary: "#E58325",
accent: this.randomColor(), accent: "#00457A",
secondary: this.randomColor(), secondary: "#973542",
success: this.randomColor(), success: "#5AB1BB",
info: this.randomColor(), info: "#4990BA",
warning: this.randomColor(), warning: "#FF4081",
error: this.randomColor() error: "#EF5350",
} },
}; };
this.$emit("new-theme", newTheme); this.$emit("new-theme", newTheme);
this.dialog = false; this.dialog = false;
} },
} },
}; };
</script> </script>