Respect config map list heading

This commit is contained in:
James Lyne 2020-12-15 22:11:29 +00:00
parent 37c1766e6f
commit e23842574d

View File

@ -1,6 +1,6 @@
<template> <template>
<section class="sidebar__section"> <section class="sidebar__section">
<span class="section__heading">Maps</span> <span class="section__heading">{{ heading }}</span>
<ul class="section__content"> <ul class="section__content">
<WorldListItem :world="world" v-for="[name, world] in worlds" :key="name"></WorldListItem> <WorldListItem :world="world" v-for="[name, world] in worlds" :key="name"></WorldListItem>
</ul> </ul>
@ -19,6 +19,10 @@ export default defineComponent({
}, },
computed: { computed: {
heading() {
return useStore().state.messages.mapTypes;
},
worlds() { worlds() {
return useStore().state.worlds; return useStore().state.worlds;
} }