projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix computer game continuation when it's computer turn
[vchess.git]
/
public
/
javascripts
/
components
/
variantSummary.js
diff --git
a/public/javascripts/components/variantSummary.js
b/public/javascripts/components/variantSummary.js
index
e6ec03a
..
16b06ce
100644
(file)
--- a/
public/javascripts/components/variantSummary.js
+++ b/
public/javascripts/components/variantSummary.js
@@
-12,7
+12,7
@@
Vue.component('my-variant-summary', {
</span>
</h4>
<p class="description text-center">
- {{
vobj.desc
}}
+ {{
translate(vobj.desc)
}}
</p>
</a>
</div>
@@
-22,4
+22,9
@@
Vue.component('my-variant-summary', {
return "/" + this.vobj.name;
},
},
+ methods: {
+ translate: function(text) {
+ return translations[text];
+ },
+ },
})