Skip to content

Commit

Permalink
leave shared proj bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tutaru99 committed May 22, 2021
1 parent 0b26965 commit 77b0241
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export default {
(this.invitedProjectsData = response.data),
(this.fullscreenLoading = false);
})
.then(this.$emit("refreshData"));
.then(this.$emit("refreshData"));
},
async createProject() {
Expand Down Expand Up @@ -522,12 +522,14 @@ export default {
});
console.log("Project State false");
}
this.getProjectsData()
this.getProjectsData();
},
async deleteProject(projectID) {
await axios
.delete(`${process.env.VUE_APP_BASE_URL_API}/api/projects/${projectID}?userId=${this.$store.state.auth.id}`)
.delete(
`${process.env.VUE_APP_BASE_URL_API}/api/projects/${projectID}?userId=${this.$store.state.auth.id}`
)
.then((response) => {
(this.projects = response.data),
this.getProjectsData(),
Expand All @@ -547,8 +549,9 @@ export default {
.post(`${process.env.VUE_APP_BASE_URL_API}/api/projects/remove-user`, {
userEmail: email,
projectId: projectId,
userMakingRequestId: this.$store.state.auth.id
}).then(() => {
userMakingRequestId: this.$store.state.auth.id,
})
.then(() => {
this.$notify({
title: "Left the Project",
type: "error",
Expand Down

0 comments on commit 77b0241

Please sign in to comment.