import { gMainApp, gEventBus, gUrlParams } from "./MainApp.js" ;
// --------------------------------------------------------------------
gMainApp.component( "content-pane", {
props: [ "contentDocs" ],
template: `
`,
mounted() {
gEventBus.on( "show-content-doc", (docId) => {
this.$refs.tabbedPages.activateTab( docId ) ; // nb: tabId == docId
} ) ;
},
} ) ;
// --------------------------------------------------------------------
gMainApp.component( "content-doc", {
props: [ "doc" ],
data() { return {
noContent: gUrlParams.get( "no-content" ),
} ; },
template: `
Content disabled.
No content.
`,
} ) ;