X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=54602e054a13c86d588834944b3d42a4c213a465;hb=b955c65b942d09d24b5c3bed0d755d4f2f8f71f1;hp=2c9ea94ef3661ad7f56d49c1c5a6d275712e8eb3;hpb=8ef618ef05070642849f50861399116c2d69a816;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index 2c9ea94e..54602e05 100644 --- a/public/javascripts/components/problemSummary.js +++ b/public/javascripts/components/problemSummary.js @@ -1,6 +1,6 @@ // Preview a problem on variant page -Vue.component('my-problem-preview', { - props: ['prob','userid'], +Vue.component('my-problem-summary', { + props: ['prob','userid','preview'], template: `

{{ timestamp2date(prob.added) }}

-
- - + +
+ +
@@ -29,8 +30,5 @@ Vue.component('my-problem-preview', { timestamp2date(ts) { return getDate(new Date(ts)); }, - sendSignal: function(action) { - this.$emit(action + "-problem"); - }, }, })