mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
Quest completion modal acknowledge on close (#10089)
* Change quest completion modal to only close on user acknowledge of clicking ok or 'x' and update 'x' to acknowledge the quest completion. * Removing check on header-close. * Removing unused variable.
This commit is contained in:
parent
781256c917
commit
48fa78bef2
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<template lang="pug">
|
||||
b-modal#quest-completed(v-if='user.party.quest.completed', :title="title",
|
||||
size='md', :hide-footer="true")
|
||||
size='md', :hide-footer="true", :no-close-on-esc="true", :no-close-on-backdrop="true",
|
||||
@hide='hide')
|
||||
.modal-body.text-center
|
||||
.quest(:class='`quest_${user.party.quest.completed}`')
|
||||
p(v-if='questData.completion && typeof questData.completion === "function"', v-html='questData.completion()')
|
||||
|
|
@ -61,6 +62,9 @@ export default {
|
|||
this.$store.dispatch('user:set', {'party.quest.completed': ''});
|
||||
this.close();
|
||||
},
|
||||
hide () {
|
||||
this.setQuestCompleted();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue