Skip to content

Commit

Permalink
Add component attribute topicmap
Browse files Browse the repository at this point in the history
See dmx-platform/dmx-platform#492
  • Loading branch information
jri committed Oct 8, 2021
1 parent a07cff1 commit 2f40f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/components/dmx-topicmap-panel.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<template>
<div class="dmx-topicmap-panel" v-loading="loading">
<dmx-toolbar :comp-defs="toolbarCompDefs_"></dmx-toolbar>
<component :is="topicmapRenderer" :object="object_" :writable="writable_" :detail-renderers="detailRenderers"
:context-commands="contextCommands" :drop-handler="dropHandler" :quill-config="quillConfig">
<component :is="topicmapRenderer" :topicmap="topicmap_" :object="object_" :writable="writable_"
:detail-renderers="detailRenderers" :context-commands="contextCommands" :drop-handler="dropHandler"
:quill-config="quillConfig">
</component>
</div>
</template>
Expand All @@ -29,6 +30,7 @@ export default {
],
props: {
topicmap: Object,
toolbarCompDefs: Object,
topicmapTypes: Object,
contextCommands: Object,
Expand All @@ -43,6 +45,7 @@ export default {
// Note: making `toolbarCompDefs` dynamic allows components to be added *after* dmx-topicmap-panel instantiation.
// E.g. the DMX Webclient does *not* synchronize plugin loading and instantiation of its toplevel components.
// TODO: still true?
topicmap_: this.topicmap,
object_: this.object,
writable_: this.writable,
toolbarCompDefs_: this.toolbarCompDefs
Expand Down
4 changes: 0 additions & 4 deletions src/topicmap-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ const actions = {
topicmapCache = {}
},

resizeTopicmapRenderer () {
// empty dummy action to catch a "resize" request when no renderer is mounted yet
},

// WebSocket messages

_processDirectives (_, directives) {
Expand Down

0 comments on commit 2f40f3e

Please sign in to comment.