Some styles improvement attempts (how to uniformize modals?)
[vchess.git] / public / javascripts / index.js
index 29e48f7..54c296b 100644 (file)
@@ -8,7 +8,11 @@ new Vue({
        },
        computed: {
                sortedCounts: function () {
-                       const variantsCounts = variantArray.map( v => {
+                       const variantsCounts = variantArray
+                       .filter( v => {
+                               return v.name.startsWith(this.curPrefix);
+                       })
+                       .map( v => {
                                return {
                                        name: v.name,
                                        desc: v.description,