Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
19acf06e
Commit
19acf06e
authored
3 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
more doc
parent
95a16ec6
No related branches found
No related tags found
1 merge request
!168
Doc
Pipeline
#181882
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/community-admin.service.js
+8
-8
8 additions, 8 deletions
src/services/community-admin.service.js
with
8 additions
and
8 deletions
src/services/community-admin.service.js
+
8
−
8
View file @
19acf06e
...
@@ -26,7 +26,7 @@ class CommunityAdminService {
...
@@ -26,7 +26,7 @@ class CommunityAdminService {
* Accepts a member request.
* Accepts a member request.
* @param {Number} communityID the community to accept the request into.
* @param {Number} communityID the community to accept the request into.
* @param {Number} userID the user id of the user being accepted into the community.
* @param {Number} userID the user id of the user being accepted into the community.
* @returns
just the promi
se.
* @returns
the respon
se.
*/
*/
async
acceptUserIntoCommunity
(
communityID
,
userID
)
{
async
acceptUserIntoCommunity
(
communityID
,
userID
)
{
return
await
axios
.
post
(
return
await
axios
.
post
(
...
@@ -38,9 +38,9 @@ class CommunityAdminService {
...
@@ -38,9 +38,9 @@ class CommunityAdminService {
/**
/**
* Reject a user's request to join a community.
* Reject a user's request to join a community.
* @param {Number} communityID
* @param {Number} communityID
id of the community to reject the request from.
* @param {
*
} userID
* @param {
Number
} userID
id of the user being rejected.
* @returns
* @returns
the response.
*/
*/
async
rejectUserFromCommunity
(
communityID
,
userID
)
{
async
rejectUserFromCommunity
(
communityID
,
userID
)
{
return
await
axios
.
patch
(
return
await
axios
.
patch
(
...
@@ -52,9 +52,9 @@ class CommunityAdminService {
...
@@ -52,9 +52,9 @@ class CommunityAdminService {
/**
/**
* Method that kicks a user from a community
* Method that kicks a user from a community
* @param {
int
} communityID the community to remove the user from
* @param {
Number
} communityID the community to remove the user from
* @param {
int
} userID the user to remove
* @param {
Number
} userID the user to remove
* @returns
TODO
* @returns
the response.
*/
*/
async
removeUserFromCommunity
(
communityID
,
userID
)
{
async
removeUserFromCommunity
(
communityID
,
userID
)
{
return
await
axios
.
patch
(
return
await
axios
.
patch
(
...
@@ -71,7 +71,7 @@ class CommunityAdminService {
...
@@ -71,7 +71,7 @@ class CommunityAdminService {
/**
/**
* Method to delete a community
* Method to delete a community
* @param {
int
} communityID id of the community to delete.
* @param {
Number
} communityID id of the community to delete.
* @returns TODO
* @returns TODO
*/
*/
async
deleteCommunity
(
communityID
)
{
async
deleteCommunity
(
communityID
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment