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
3207eed3
Commit
3207eed3
authored
2 years ago
by
Titus Netland
Browse files
Options
Downloads
Plain Diff
Merge branch 'delete-community' into 'main'
Delete community See merge request
!142
parents
fde08002
8c5813cf
No related branches found
No related tags found
1 merge request
!142
Delete community
Pipeline
#181941
failed
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CommunityComponents/CommunitySettings.vue
+7
-4
7 additions, 4 deletions
src/components/CommunityComponents/CommunitySettings.vue
src/services/community-admin.service.js
+1
-1
1 addition, 1 deletion
src/services/community-admin.service.js
with
8 additions
and
5 deletions
src/components/CommunityComponents/CommunitySettings.vue
+
7
−
4
View file @
3207eed3
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
//
import CommunityAdminService from "@/services/community-admin.service";
import
CommunityAdminService
from
"
@/services/community-admin.service
"
;
import
IconButton
from
"
@/components/BaseComponents/IconButton.vue
"
;
//TODO: OPEN CONFIRMATION DIALOG WHEN DELETING
...
...
@@ -19,9 +19,12 @@ export default {
IconButton
,
},
methods
:
{
deleteCommunity
()
{
console
.
log
(
"
DELETED
"
);
// CommunityAdminService.deleteCommunity(this.$route.params.communityID);
async
deleteCommunity
()
{
let
response
=
await
CommunityAdminService
.
deleteCommunity
(
this
.
$route
.
params
.
communityID
);
if
(
response
.
status
===
200
)
this
.
$router
.
push
({
name
:
"
home
"
,
replace
:
true
});
},
},
};
...
...
This diff is collapsed.
Click to expand it.
src/services/community-admin.service.js
+
1
−
1
View file @
3207eed3
...
...
@@ -60,7 +60,7 @@ class CommunityAdminService {
* @returns TODO
*/
async
deleteCommunity
(
communityID
)
{
return
await
axios
.
post
(
return
await
axios
.
delete
(
API_URL
+
"
communities/
"
+
communityID
+
"
/remove
"
,
{
headers
:
tokenHeader
(),
...
...
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