Skip to content
Snippets Groups Projects

Added member requests for admin in private groups

Merged Haakon Tideman Kanter requested to merge community-request into main
3 files
+ 23
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -10,6 +10,7 @@
<script>
import UserListItemCard from "@/components/UserProfileComponents/UserListItemCard.vue";
import CommunityService from "@/services/community.service";
import {GetMemberRequestsOfCommunity} from "@/utils/apiutil";
export default {
name: "MemberList",
@@ -18,6 +19,7 @@ export default {
},
props: {
buttons: Array,
requests: Boolean,
},
data() {
return {
@@ -30,9 +32,14 @@ export default {
},
async created() {
this.loading = true;
this.members = await CommunityService.getCommunityMembers(
if(this.requests){
this.members = await GetMemberRequestsOfCommunity(
this.$route.params.communityID
);
} else {
this.members = await CommunityService.getCommunityMembers(
this.$route.params.communityID
);}
this.loading = false;
},
};
Loading