name: String,
icon: String,
iconAlt: String,
+ defaultValue: Boolean,
},
data: function () {
return {
if (this.name in localStorage) {
this.value = JSON.parse(localStorage[this.name]);
+ } else {
+ this.value = this.defaultValue;
}
this.$emit("updated", this.value);