Commit 0fd3e3f4 authored by christianrhansen's avatar christianrhansen

fixed missing breadcrumbs

parent 40688f91
Pipeline #29679 passed with stage
in 1 minute and 7 seconds
......@@ -320,6 +320,7 @@
],
media: [
'piecemaker.media.annotate',
'piecemaker.media.index',
'piecemaker.media.edit',
'piecemaker.media.sync'
],
......@@ -370,6 +371,7 @@
this.timeline = undefined
this.mediaMetadata = undefined
this.grid = undefined
console.log('ROUTE', route)
// this.currentRoute = route.name
// detect current app
......@@ -418,8 +420,8 @@
}
},
async getMedia () {
if (this.$route.params.uuid) {
this.media = await this.$store.dispatch('annotations/get', this.$route.params.uuid)
if (this.$route.params.uuid || this.$route.params.id) {
this.media = await this.$store.dispatch('annotations/get', (this.$route.params.uuid || this.$route.params.id))
this.mediaMetadata = await this.$store.dispatch('metadata/get', this.media)
if (this.media && !this.currentId.timeline) this.currentId.timeline = parseURI(this.media.target.id).uuid
}
......
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