mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
Issue 10414 - Remove Member Option from View Party link. (#10639)
* Add remove member option from main task page * Code refactor for remove member options * code refactor to avoid loading party multiple times * fix dispatch to ensure only pulling once from server
This commit is contained in:
parent
218d47d64a
commit
97021e3422
1 changed files with 5 additions and 3 deletions
|
|
@ -154,11 +154,13 @@ export default {
|
|||
this.$root.$emit('bv::show::modal', 'create-party-modal');
|
||||
}
|
||||
},
|
||||
showPartyMembers () {
|
||||
async showPartyMembers () {
|
||||
const party = await this.$store.dispatch('party:getParty');
|
||||
|
||||
this.$root.$emit('habitica:show-member-modal', {
|
||||
groupId: this.user.party._id,
|
||||
groupId: party.data._id,
|
||||
viewingMembers: this.partyMembers,
|
||||
group: this.user.party,
|
||||
group: party.data,
|
||||
});
|
||||
},
|
||||
setPartyMembersWidth ($event) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue