Commit ed5aa3f9 authored by christianrhansen's avatar christianrhansen

removed anything documents related in breadcrumbNav

parent 04b38a15
Pipeline #50967 passed with stage
in 5 minutes and 47 seconds
......@@ -56,7 +56,7 @@
export default {
name: 'breadcrumb-nav',
props: ['timeline', 'mediaMetadata', 'media', 'grid', 'document'],
props: ['timeline', 'mediaMetadata', 'media', 'grid'],
components: {
UserNavButton
},
......@@ -74,11 +74,6 @@
route: 'mosys.grids.list',
path: '/mosys/grids'
},
documents: {
label: 'Documents',
route: 'documents.list',
path: '/documents/list'
},
users: {
label: 'Account Settings',
route: 'users.manage',
......@@ -129,17 +124,6 @@
route: '/mosys/grids/' + this.grid._uuid
})
}
if (this.document) {
bc.push({
label: this.document,
route: '/documents/edit'
})
}
if (this.$route.name === 'documents.edit') {
bc.push({
label: this.$route.params.asset
})
}
// const b = this.$route.name.split('.')
// if (b.length === 3) {
// const s = b[2]
......@@ -167,12 +151,6 @@
route: '/mosys/grids'
})
}
if (parts[0] === 'documents') {
bc.push({
label: 'Add document',
route: '/documents/list'
})
}
}
return bc
},
......@@ -236,23 +214,6 @@
name: 'mosys.grids.edit'
})
}
// ---------------------------------------------------------------------------------------------------- document
if (this.document) {
di = []
di.push({
label: this.$t('navigation.documents.documents_copy_url'),
route: '/documents/copy_url'
// name: 'bbb'
}, {
label: this.$t('navigation.documents.documents_download'),
route: '/documents/download'
// name: 'bbb'
}, {
label: this.$t('navigation.documents.documents_edit'),
route: '/documents/edit'
// name: 'bbb'
})
}
return di
},
addButton () {
......@@ -278,13 +239,6 @@
name: 'piecemaker.media.create'
}
}
if (this.breadcrumbs[0].label === 'Documents') {
ab = {
label: this.$t('buttons.create_document'),
route: '/documents/create',
name: 'documents.create'
}
}
return ab
},
cancelButton () {
......
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