diff --git a/website/client/components/challenges/challengeDetail.vue b/website/client/components/challenges/challengeDetail.vue index cb820acc14..3c60f8f3b9 100644 --- a/website/client/components/challenges/challengeDetail.vue +++ b/website/client/components/challenges/challengeDetail.vue @@ -10,7 +10,7 @@ h1 {{challenge.name}} div strong(v-once) {{$t('createdBy')}}: - span {{challenge.author}} + span {{challenge.leader.profile.name}} // @TODO: make challenge.author a variable inside the createdBy string (helps with RTL languages) // @TODO: Implement in V2 strong.margin-left(v-once) .svg-icon.calendar-icon(v-html="icons.calendarIcon") @@ -42,10 +42,11 @@ :type="column", :key="column", :taskListOverride='tasksByType[column]', - v-on:editTask="editTask") + v-on:editTask="editTask", + v-if='tasksByType[column].length > 0') .col-4.sidebar.standard-page .acitons - div(v-if='!isMember && !isLeader') + div(v-if='canJoin') button.btn.btn-success(v-once, @click='joinChallenge()') {{$t('joinChallenge')}} div(v-if='isMember') button.btn.btn-danger(v-once, @click='leaveChallenge()') {{$t('leaveChallenge')}} @@ -61,6 +62,7 @@ :challengeId="challengeId", v-on:taskCreated='taskCreated', v-on:taskEdited='taskEdited', + @taskDestroyed='taskDestroyed' ) div(v-if='isLeader') button.btn.btn-secondary(v-once, @click='edit()') {{$t('editChallenge')}} @@ -74,7 +76,7 @@ h2 {{$t('challengeSummary')}} p {{challenge.summary}} h2 {{$t('challengeDescription')}} - p {{challenge.description}} + p(v-markdown='challenge.description')