X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=5f0fd44bf36a371ff1c2ae3c51dccf152b34af87;hb=b6487fb9c41705187cf97215fc9e8f86a59057c7;hp=31e9e5453998e842eeaf2e9ae4e85add656a3183;hpb=e8e4adbded06cf3ccc36cee66a786d6e97b726ef;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index 31e9e545..5f0fd44b 100644 --- a/public/javascripts/components/problemSummary.js +++ b/public/javascripts/components/problemSummary.js @@ -10,11 +10,14 @@ Vue.component('my-problem-summary', {

{{ timestamp2date(prob.added) }}

- + `, methods: { + translate: function(text) { + return translations[text]; + }, getDiagram: function(fen) { const fenParsed = V.ParseFen(fen); return getDiagram({