small update
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user