Closed modal when removing challenge task (#10597)

This commit is contained in:
Keith Holliday
2018-08-16 16:54:57 -05:00
committed by GitHub
parent 5ae89761b0
commit b7ca5be6ee

View File

@@ -83,6 +83,7 @@ export default {
removeTask () { removeTask () {
if (!confirm('Are you sure you want to delete this task?')) return; if (!confirm('Are you sure you want to delete this task?')) return;
this.destroyTask(this.brokenChallengeTask); this.destroyTask(this.brokenChallengeTask);
this.close();
}, },
close () { close () {
this.$store.state.brokenChallengeTask = {}; this.$store.state.brokenChallengeTask = {};