mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
New client popups profile andmore (#8907)
* Added more styles to user profile modal and replaced memberDetail * Added notify library * Added edit avator * Added notification menu updates * Fixed lint issues * Added group invite functionality * Added many achievement modals * Added initial quest modals * Added guild, drops, and rebirth modals * Added the reset of the achievement modals and fixed lint
This commit is contained in:
@@ -102,6 +102,7 @@ div
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// @TODO: Move this under members directory
|
||||
import bModal from 'bootstrap-vue/lib/components/modal';
|
||||
import bDropdown from 'bootstrap-vue/lib/components/dropdown';
|
||||
import bDropdownItem from 'bootstrap-vue/lib/components/dropdown-item';
|
||||
@@ -158,15 +159,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getMembers () {
|
||||
if (this.group._id) {
|
||||
let groupId = this.group._id || this.$store.state.groupId;
|
||||
if (groupId) {
|
||||
let members = await this.$store.dispatch('members:getGroupMembers', {
|
||||
groupId: this.group._id,
|
||||
groupId,
|
||||
includeAllPublicFields: true,
|
||||
});
|
||||
this.members = members;
|
||||
}
|
||||
|
||||
if (this.$store.state.viewingMembers) this.members = this.$store.state.viewingMembers;
|
||||
if (this.$store.state.viewingMembers.length > 1) this.members = this.$store.state.viewingMembers;
|
||||
},
|
||||
async clickMember (uid, forceShow) {
|
||||
let user = this.$store.state.user.data;
|
||||
|
||||
Reference in New Issue
Block a user