cleanup: remove logs
This commit is contained in:
@@ -369,7 +369,6 @@ export default {
|
||||
this.collectionsType.selectedTeam.id
|
||||
)
|
||||
}
|
||||
console.log(this.collectionJson)
|
||||
return this.collectionJson
|
||||
},
|
||||
exportJSON() {
|
||||
|
||||
@@ -281,9 +281,6 @@ export default {
|
||||
document.addEventListener("keydown", this._keyListener.bind(this))
|
||||
|
||||
this.$subscribeTo(this.teamCollectionAdapter.collections$, (colls) => {
|
||||
console.log("new tree!")
|
||||
console.log(colls)
|
||||
|
||||
this.teamCollectionsNew = cloneDeep(colls)
|
||||
})
|
||||
},
|
||||
@@ -564,7 +561,6 @@ export default {
|
||||
}
|
||||
},
|
||||
expandCollection(collectionID) {
|
||||
console.log(collectionID)
|
||||
this.teamCollectionAdapter.expandCollection(collectionID)
|
||||
},
|
||||
removeCollection({ collectionsType, collectionIndex, collectionID }) {
|
||||
@@ -597,7 +593,6 @@ export default {
|
||||
this.$toast.success(this.$t("deleted"), {
|
||||
icon: "delete",
|
||||
})
|
||||
console.log(data)
|
||||
})
|
||||
.catch((error) => {
|
||||
// Error
|
||||
|
||||
@@ -181,7 +181,6 @@ export default {
|
||||
this.$toast.success(this.$t("deleted"), {
|
||||
icon: "delete",
|
||||
})
|
||||
console.log(data)
|
||||
this.$emit("update-team-collections")
|
||||
this.confirmRemove = false
|
||||
})
|
||||
|
||||
@@ -56,7 +56,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
addNewTeam() {
|
||||
console.log("addNewTeam start")
|
||||
// We save the user input in case of an error
|
||||
const name = this.name
|
||||
// We clear it early to give the UI a snappy feel
|
||||
@@ -65,7 +64,6 @@ export default {
|
||||
this.$toast.error(this.$t("string_length_insufficient"), {
|
||||
icon: "error",
|
||||
})
|
||||
console.log("String length less than 6")
|
||||
return
|
||||
}
|
||||
// Call to the graphql mutation
|
||||
@@ -74,7 +72,6 @@ export default {
|
||||
.then((data) => {
|
||||
// Result
|
||||
this.hideModal()
|
||||
console.log(data)
|
||||
})
|
||||
.catch((error) => {
|
||||
// Error
|
||||
|
||||
@@ -184,7 +184,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.membersAdapter.members$.subscribe((list) => {
|
||||
console.log(list)
|
||||
this.members = cloneDeep(list)
|
||||
})
|
||||
},
|
||||
@@ -208,13 +207,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
updateRole(id, role) {
|
||||
console.log(this.members, id)
|
||||
this.members[id].role = role
|
||||
},
|
||||
addTeamMember() {
|
||||
let value = { key: "", value: "" }
|
||||
this.newMembers.push(value)
|
||||
console.log("addTeamMember")
|
||||
},
|
||||
removeExistingTeamMember(userID) {
|
||||
team_utils
|
||||
@@ -236,7 +233,6 @@ export default {
|
||||
},
|
||||
removeTeamMember(index) {
|
||||
this.newMembers.splice(index, 1)
|
||||
console.log("removeTeamMember")
|
||||
},
|
||||
validateEmail(emailID) {
|
||||
if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(emailID)) {
|
||||
@@ -249,7 +245,6 @@ export default {
|
||||
this.$toast.error(this.$t("string_length_insufficient"), {
|
||||
icon: "error",
|
||||
})
|
||||
console.log("String length less than 6")
|
||||
return
|
||||
}
|
||||
this.$data.newMembers.forEach((element) => {
|
||||
@@ -257,7 +252,6 @@ export default {
|
||||
this.$toast.error(this.$t("invalid_emailID_format"), {
|
||||
icon: "error",
|
||||
})
|
||||
console.log("Email id format invalid")
|
||||
return
|
||||
}
|
||||
})
|
||||
|
||||
@@ -111,7 +111,6 @@ export default {
|
||||
}
|
||||
reader.readAsText(this.$refs.inputChooseFileToReplaceWith.files[0])
|
||||
this.fileImported()
|
||||
this.syncToFBTeams()
|
||||
},
|
||||
importFromJSON() {
|
||||
let reader = new FileReader()
|
||||
@@ -125,7 +124,6 @@ export default {
|
||||
}
|
||||
}
|
||||
reader.readAsText(this.$refs.inputChooseFileToImportFrom.files[0])
|
||||
this.syncToFBTeams()
|
||||
},
|
||||
importFromPostwoman(teams) {
|
||||
let confirmation = this.$t("file_imported")
|
||||
@@ -160,9 +158,6 @@ export default {
|
||||
syncTeams() {
|
||||
this.fileImported()
|
||||
},
|
||||
syncToFBTeams() {
|
||||
console.log("syncToFBTeams")
|
||||
},
|
||||
fileImported() {
|
||||
this.$toast.info(this.$t("file_imported"), {
|
||||
icon: "folder_shared",
|
||||
|
||||
@@ -73,7 +73,6 @@ export default {
|
||||
methods: {
|
||||
deleteTeam() {
|
||||
if (!confirm("Are you sure you want to remove this team?")) return
|
||||
console.log("deleteTeam", this.teamID)
|
||||
// Call to the graphql mutation
|
||||
team_utils
|
||||
.deleteTeam(this.$apollo, this.teamID)
|
||||
@@ -82,7 +81,6 @@ export default {
|
||||
this.$toast.success(this.$t("new_team_created"), {
|
||||
icon: "done",
|
||||
})
|
||||
console.log(data)
|
||||
})
|
||||
.catch((error) => {
|
||||
// Error
|
||||
@@ -94,7 +92,6 @@ export default {
|
||||
},
|
||||
exitTeam() {
|
||||
if (!confirm("Are you sure you want to exit this team?")) return
|
||||
console.log("leaveTeam", this.teamID)
|
||||
team_utils
|
||||
.exitTeam(this.$apollo, this.teamID)
|
||||
.then((data) => {
|
||||
@@ -102,7 +99,6 @@ export default {
|
||||
this.$toast.success(this.$t("team_exited"), {
|
||||
icon: "done",
|
||||
})
|
||||
console.log(data)
|
||||
})
|
||||
.catch((error) => {
|
||||
// Error
|
||||
|
||||
@@ -135,17 +135,13 @@ export default {
|
||||
this.showModalImportExport = shouldDisplay
|
||||
},
|
||||
editTeam(team, teamID) {
|
||||
console.log("editTeamStart", team)
|
||||
this.editingTeam = team
|
||||
this.editingteamID = team.id
|
||||
this.displayModalEdit(true)
|
||||
this.syncTeams()
|
||||
},
|
||||
resetSelectedData() {
|
||||
console.log("resetSelectedData")
|
||||
},
|
||||
syncTeams() {
|
||||
console.log("syncTeams")
|
||||
this.$data.editingTeam = undefined
|
||||
this.$data.editingteamID = undefined
|
||||
},
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user