mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Prevent checklists from being toggled when casting spells.
This change closes #11028
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.task-wrapper
|
.task-wrapper
|
||||||
.task(@click='castEnd($event, task)')
|
.task
|
||||||
approval-header(:task='task', v-if='this.task.group.id', :group='group')
|
approval-header(:task='task', v-if='this.task.group.id', :group='group')
|
||||||
.d-flex(:class="{'task-not-scoreable': isUser !== true}")
|
.d-flex(:class="{'task-not-scoreable': isUser !== true}")
|
||||||
// Habits left side control
|
// Habits left side control
|
||||||
@@ -690,6 +690,8 @@ export default {
|
|||||||
|
|
||||||
if (!this.$store.state.spellOptions.castingSpell) {
|
if (!this.$store.state.spellOptions.castingSpell) {
|
||||||
this.$emit('editTask', task);
|
this.$emit('editTask', task);
|
||||||
|
} else {
|
||||||
|
this.$root.$emit('castEnd', task, 'task', e);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
moveToTop () {
|
moveToTop () {
|
||||||
@@ -703,9 +705,6 @@ export default {
|
|||||||
this.destroyTask(this.task);
|
this.destroyTask(this.task);
|
||||||
this.$emit('taskDestroyed', this.task);
|
this.$emit('taskDestroyed', this.task);
|
||||||
},
|
},
|
||||||
castEnd (e, task) {
|
|
||||||
this.$root.$emit('castEnd', task, 'task', e);
|
|
||||||
},
|
|
||||||
async score (direction) {
|
async score (direction) {
|
||||||
if (this.castingSpell) return;
|
if (this.castingSpell) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user