Skip to content

Commit

Permalink
fix: only show language when showing keymap
Browse files Browse the repository at this point in the history
Co-authored-by: precondition <[email protected]>
  • Loading branch information
tenstad and precondition authored Nov 14, 2024
1 parent e8a778f commit 67af324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ContainerKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export default {
return '';
},
displayLanguage() {
// The language label is only relevant for keymap legends
if (this.legends !== 'keymap') return;
return this.meta.contents.language_prefix;
},
contentClasses() {
Expand Down

0 comments on commit 67af324

Please sign in to comment.