X-Git-Url: https://git.auder.net/rpsls.js?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=08109effeafb7a8941d393116c0c88a837d7925a;hb=fd08ab2c5b8931bb8c95cf7e9f2f95122647f991;hp=e7e1db7c60377faa7417db3438571365f70e3853;hpb=b5fb8e693dc82037eec2617a7dc49d838a9a8441;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index e7e1db7c..08109eff 100644 --- a/public/javascripts/components/problemSummary.js +++ b/public/javascripts/components/problemSummary.js @@ -1,15 +1,19 @@ -// Show a problem summary on variant page or new problem preview -Vue.component('my-problem-summary', { - props: ['prob','preview'], +// Preview a problem on variant page +Vue.component('my-problem-preview', { + props: ['prob','userid'], template: ` -
-
+
-
+

-

+

{{ timestamp2date(prob.added) }}

+
+ + +
`, @@ -25,9 +29,5 @@ Vue.component('my-problem-summary', { timestamp2date(ts) { return getDate(new Date(ts)); }, - // Propagate "show problem" event to parent component (my-problems) - showProblem: function() { - this.$emit('show-problem'); - }, }, })