small update

This commit is contained in:
2019-07-01 21:32:29 +02:00
parent 13a92f5f62
commit e484c4d732

View File

@@ -24,7 +24,7 @@
:class="{'is-active': type === activeType}" :class="{'is-active': type === activeType}"
:key="type" :key="type"
v-for="type in navTypes" v-for="type in navTypes"
@click="$emit('setType', type)" @click="setType(type)"
>{{capitalizeFirstLetter(type)}}</a> >{{capitalizeFirstLetter(type)}}</a>
</div> </div>
</div> </div>
@@ -54,6 +54,10 @@ export default {
}, },
capitalizeFirstLetter(string) { capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1) return string.charAt(0).toUpperCase() + string.slice(1)
},
setType(type) {
this.toggled = false
this.$emit('setType', type)
} }
} }
} }