mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
update group members after accepting the quest (without page reload) (#12358)
* update group members after accepting the quest (without page reload) * show quest information after starting * removing quest.progress.up assignment Co-authored-by: rogesson <rogesson.barboza@locaweb.com.br>
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
progress on the group doc? Each user could have different progress.-->
|
||||
<span
|
||||
class="float-right"
|
||||
>{{ user.party.quest.progress.up | floor(10) }} {{ $t('pendingDamageLabel') }}</span> <!-- eslint-disable-line max-len -->
|
||||
>{{ (user.party.quest.progress.up || 0) | floor(10) }} {{ $t('pendingDamageLabel') }}</span> <!-- eslint-disable-line max-len -->
|
||||
<!-- player's pending damage uses floor so you
|
||||
don't overestimate damage you've already done-->
|
||||
</div>
|
||||
@@ -425,6 +425,7 @@ export default {
|
||||
async questAccept (partyId) {
|
||||
const quest = await this.$store.dispatch('quests:sendAction', { groupId: partyId, action: 'quests/accept' });
|
||||
this.user.party.quest = quest;
|
||||
this.group.quest = quest;
|
||||
},
|
||||
async questReject (partyId) {
|
||||
const quest = await this.$store.dispatch('quests:sendAction', { groupId: partyId, action: 'quests/reject' });
|
||||
|
||||
Reference in New Issue
Block a user