Commit c504911a authored by Jörg Richter's avatar Jörg Richter

Rename component attribute `marker-topic-ids` (was `marker-ids`)

BREAKING CHANGE

See dmx-platform/dmx-platform#406
parent 941ea20f
Pipeline #11384 passed with stage
in 2 seconds
......@@ -11,12 +11,12 @@
</dm5-info-tab>
</el-tab-pane>
<el-tab-pane label="Related" name="related">
<dm5-related-tab :object="object_" :tab="tab_" :sort-mode="sortMode" :marker-ids="markerIds_"
<dm5-related-tab :object="object_" :tab="tab_" :sort-mode="sortMode" :marker-topic-ids="markerTopicIds_"
@related-topic-click="relatedTopicClick" @related-icon-click="relatedIconClick" @sort-change="sortChange">
</dm5-related-tab>
</el-tab-pane>
<el-tab-pane label="Meta" name="meta">
<dm5-meta-tab :object="object_" :writable="writable_" :tab="tab_" :marker-ids="markerIds_"
<dm5-meta-tab :object="object_" :writable="writable_" :tab="tab_" :marker-topic-ids="markerTopicIds_"
@related-topic-click="relatedTopicClick" @related-icon-click="relatedIconClick"
@object-id-click="objectIdClick">
</dm5-meta-tab>
......@@ -54,7 +54,7 @@ export default {
pinned: {type: Boolean, default: false}, // Pin toggle state
tab: {type: String, default: 'info'}, // The selected tab: 'info', 'related', ... Optional. Default is 'info'.
object: dm5.DMXObject, // The topic/assoc to display. Undefined if data not yet available.
markerIds: Array, // Optional: IDs of topics to render as "marked" in related-tab.
markerTopicIds: Array, // Optional: IDs of topics to render as "marked" in related-tab.
types: Object, // Optional: "assocTypes" and "roleTypes" (arrays)
quillConfig: Object,
noPinButton: Boolean
......@@ -64,14 +64,14 @@ export default {
return {
sortMode: 'type', // Related tab sort mode: 'topic', 'type', 'assoc'
// mirror props ### FIXME: add remaining props?
visible_: this.visible,
pinned_: this.pinned,
tab_: this.tab,
object_: this.object,
writable_: this.writable,
mode_: this.mode,
markerIds_: this.markerIds,
types_: this.types
visible_: this.visible,
pinned_: this.pinned,
tab_: this.tab,
object_: this.object,
writable_: this.writable,
mode_: this.mode,
markerTopicIds_: this.markerTopicIds,
types_: this.types
}
},
......
......@@ -49,11 +49,11 @@
</div>
</div>
<!-- Type -->
<dm5-topic-list :topics="types" no-sort-menu :marker-ids="markerIds"
<dm5-topic-list :topics="types" no-sort-menu :marker-topic-ids="markerTopicIds"
@topic-click="topicClick" @icon-click="iconClick">
</dm5-topic-list>
<!-- Topicmaps -->
<dm5-topic-list :topics="topicmapTopics" no-sort-menu :marker-ids="markerIds"
<dm5-topic-list :topics="topicmapTopics" no-sort-menu :marker-topic-ids="markerTopicIds"
@topic-click="topicClick" @icon-click="iconClick">
</dm5-topic-list>
</div>
......@@ -80,7 +80,7 @@ export default {
props: {
tab: {type: String, required: true}, // The selected tab: 'info', 'related', ...
markerIds: Array // IDs of topics to render as "marked"
markerTopicIds: Array // IDs of topics to render as "marked"
},
data () {
......
<template>
<div class="dm5-related-tab">
<dm5-topic-list v-if="!loading" :topics="topics" :sort-mode="sortMode" :marker-ids="markerIds"
<dm5-topic-list v-if="!loading" :topics="topics" :sort-mode="sortMode" :marker-topic-ids="markerTopicIds"
@topic-click="topicClick" @icon-click="iconClick" @sort-change="sortChange">
</dm5-topic-list>
<div v-else v-loading="true" class="dm5-spinner"></div>
......@@ -11,7 +11,7 @@
export default {
created () {
// console.log('dm5-related-tab created', this.markerIds)
// console.log('dm5-related-tab created', this.markerTopicIds)
this.fetchTopics()
},
......@@ -26,7 +26,7 @@ export default {
props: {
tab: {type: String, required: true}, // The selected tab: 'info', 'related', ...
sortMode: String, // topic list sort mode: 'topic', 'type', 'assoc'
markerIds: Array // IDs of topics to render as "marked"
markerTopicIds: Array // IDs of topics to render as "marked"
},
data () {
......
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