Fixed removing tasks from challenges (#11254)

* fixed missing event handler for removing tasks in challenges

* renamed test

* simplified challengeDetail test
This commit is contained in:
kogelnikp
2019-07-12 17:03:30 +02:00
committed by Matteo Pagliazzi
parent e5c52625ad
commit 2e227909a4
2 changed files with 66 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
.row
challenge-modal(v-on:updatedChallenge='updatedChallenge')
challenge-modal(@updatedChallenge='updatedChallenge')
leave-challenge-modal(:challengeId='challenge._id')
close-challenge-modal(:members='members', :challengeId='challenge._id', :prize='challenge.prize')
challenge-member-progress-modal(:challengeId='challenge._id')
@@ -47,8 +47,8 @@
@cancel="cancelTaskModal()",
ref="taskModal",
:challengeId="challengeId",
v-on:taskCreated='taskCreated',
v-on:taskEdited='taskEdited',
@taskCreated='taskCreated',
@taskEdited='taskEdited',
@taskDestroyed='taskDestroyed'
)
.row
@@ -57,7 +57,8 @@
:type="column",
:key="column",
:taskListOverride='tasksByType[column]',
v-on:editTask="editTask",
@editTask="editTask",
@taskDestroyed="taskDestroyed",
v-if='tasksByType[column].length > 0')
.col-12.col-md-4.sidebar.standard-page
.button-container(v-if='canJoin')