X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FVariantList.vue;h=60e553d2f49f8d65c84dc3625d0dc3f84d359336;hb=HEAD;hp=e5d02856f5ade3bdcb2de8e47ecca8cabf5ba1c1;hpb=737a5dafb39740ebe304b8d0a82df85070def571;p=vchess.git diff --git a/client/src/views/VariantList.vue b/client/src/views/VariantList.vue index e5d02856..60e553d2 100644 --- a/client/src/views/VariantList.vue +++ b/client/src/views/VariantList.vue @@ -12,7 +12,7 @@ main :class="getVclasses(filteredVariants, idx)" ) router-link(:to="getLink(v.name)") - h4.boxtitle.text-center {{ v.name }} + h4.boxtitle.text-center {{ v.display }} p.description.text-center {{ st.tr[v.desc] }} @@ -36,16 +36,17 @@ export default { ); const variants = this.st.variants .filter(v => { - return v.name.startsWith(capitalizedPrefix); + return v.display.startsWith(capitalizedPrefix); }) .map(v => { return { name: v.name, - desc: v.description + desc: v.description, + display: v.display }; }) .sort((a, b) => { - return a.name.localeCompare(b.name); + return a.display.localeCompare(b.display); }); return variants; }