Commit 2871f22d authored by Mathias Bär's avatar Mathias Bär

removed various commented out parts, unnecessary console.log calls and the...

removed various commented out parts, unnecessary console.log calls and the "annotation updated" notification in swim lane.
parent aaa91365
Pipeline #11953 passed with stage
in 7 minutes and 47 seconds
......@@ -39,7 +39,6 @@
},
computed: {
breadcrumbs () {
console.log('route', this.$route, this.timeline)
let bc = []
const parts = this.$route.name.split('.')
......
......@@ -190,24 +190,12 @@
toProperCase (t) {
return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()
},
// getButtons () {
// if (this.type in this.buttons) {
// return this.buttons[this.type]
// }
// else return undefined
// },
getConfig () {
if (this.type in this.config) {
return this.config[this.type]
}
else return undefined
}
// getSpecialFunctions (config) {
// if (this.$route.name in config.specialFunctions) {
// return config.specialFunctions[this.$route.name]
// }
// else return undefined
// }
}
}
</script>
......
......@@ -279,6 +279,16 @@
'piecemaker.timelines.show',
'piecemaker.videos.list',
'piecemaker.videos.create'
],
video: [
'piecemaker.videos.annotate',
'piecemaker.videos.edit',
'piecemaker.videos.sync'
],
mosys: [
'mosys.grids.annotate',
'mosys.grids.show',
'mosys.grids.edit'
]
},
activeUserButtons: [],
......@@ -391,10 +401,7 @@
}
// video
if (route.name === 'piecemaker.videos.annotate' ||
route.name === 'piecemaker.videos.edit' ||
route.name === 'piecemaker.videos.sync'
) {
if (this.routes.video.includes(route.name)) {
this.currentId.video = route.params.uuid
this.getVideo()
}
......@@ -403,10 +410,7 @@
}
// grid
if (route.name === 'mosys.grids.annotate' ||
route.name === 'mosys.grids.show' ||
route.name === 'mosys.grids.edit'
) {
if (this.routes.mosys.includes(route.name)) {
this.currentId.grid = route.params.uuid
this.getGrid()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment