From f20f96397f8cc89e369974d7cb10d1d12ebfe71b Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 13 Apr 2021 10:59:07 +0200 Subject: [PATCH] More intuitive variants-by-name page --- client/src/views/VariantList.vue | 4 ++-- server/db/populate.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/views/VariantList.vue b/client/src/views/VariantList.vue index 5f230107..60e553d2 100644 --- a/client/src/views/VariantList.vue +++ b/client/src/views/VariantList.vue @@ -36,7 +36,7 @@ export default { ); const variants = this.st.variants .filter(v => { - return v.name.startsWith(capitalizedPrefix); + return v.display.startsWith(capitalizedPrefix); }) .map(v => { return { @@ -46,7 +46,7 @@ export default { }; }) .sort((a, b) => { - return a.name.localeCompare(b.name); + return a.display.localeCompare(b.display); }); return variants; } diff --git a/server/db/populate.sql b/server/db/populate.sql index c55a1b8b..d4f6b0c5 100644 --- a/server/db/populate.sql +++ b/server/db/populate.sql @@ -63,7 +63,7 @@ insert or ignore into Variants (name, description, groupe, display) values ('Doublemove1', 'Double moves (v1)', 24, 'Doublemove 1'), ('Doublemove2', 'Double moves (v2)', 24, 'Doublemove 2'), ('Dynamo', 'Push and pull', 11, 'Dynamo'), - ('Eightpieces', 'Each piece is unique', 7, '8 pieces'), + ('Eightpieces', 'Each piece is unique', 7, '8-Pieces'), ('Emergo', 'Stacking Checkers variant', 28, 'Emergo'), ('Empire', 'Empire versus Kingdom', 5, 'Empire Chess'), ('Enpassant', 'Capture en passant', 10, 'En-passant'), -- 2.44.0