mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Closed modal when removing challenge task (#10597)
This commit is contained in:
@@ -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 = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user