Commit cb55bf59 authored by Anton Koch's avatar Anton Koch

Merge branch '337-documents-removal---mosys' into 'master'

removed everything documents related in source editor (#337)

See merge request !29
parents d8d66095 52e6fef4
Pipeline #50978 passed with stage
in 1 minute and 27 seconds
......@@ -19,7 +19,6 @@
| Select source
.slide-body(:class="[isMobile ? 'mobile' : 'desktop']")
// TODO: if documents, check userHasFeature
template(v-for="(button, index) in buttons")
q-item-separator.q-ma-none.bg-grey-3(v-if="index > 0")
......@@ -39,8 +38,6 @@
source-cells
template(v-if="selectedSource === 'piecemaker'")
source-piecemaker(@nextSlide="onNextSlide()")
template(v-if="selectedSource === 'documents'")
source-documents
//---------- slide 3
q-carousel-slide.q-pa-none(v-if="selectedSource === 'piecemaker'")
......@@ -59,18 +56,15 @@
<script>
import SlideHeader from './SlideHeader'
import SourceCells from './sources/SourceCells'
import SourceDocuments from './sources/SourceDocuments'
import SourcePiecemaker from './sources/SourcePiecemaker'
import SourcePiecemakerDetails from './sources/SourcePiecemakerDetails'
import { mapGetters } from 'vuex'
import { userHasFeature } from 'mbjs-quasar/src/lib'
export default {
components: {
SlideHeader,
SourceCells,
SourceDocuments,
SourcePiecemaker,
SourcePiecemakerDetails
},
......@@ -80,8 +74,6 @@
label: 'Cells', value: 'cells'
}, {
label: 'Piecemaker', value: 'piecemaker'
}, {
label: 'Documents', value: 'documents'
}],
slide: 0,
selectedSource: 'cells',
......@@ -93,10 +85,7 @@
user: 'auth/getUserState',
storeCurrentTimeline: 'mosys/getCurrentTimeline',
cachedNewCell: 'mosys/getNewCell'
}),
userHasDocuments () {
return userHasFeature(this.user, 'documents')
}
})
},
beforeDestroy () {
this.$store.commit('mosys/hideSources')
......
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