Skip to content

Commit

Permalink
fix: treenode component instead of label
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloBar1 committed Oct 25, 2024
1 parent e3df0c7 commit 4cafbfc
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions cosmoz-treenode-button-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,13 @@ class CosmozTreenodeButtonView extends translatable(PolymerElement) {
title="[[ buttonText ]]"
>
<div class="pathToNode">
&lrm;<span
><cosmoz-treenode
key-property="pathLocator"
key-value="[[ nodePath ]]"
owner-tree="[[ cz.state.tree ]]"
show-max-nodes="[[ showMaxNodes]]"
></cosmoz-treenode
>[[ buttonText ]]</span
>
<cosmoz-treenode
key-property="pathLocator"
key-value="[[ nodePath ]]"
owner-tree="[[ tree ]]"
fallback="Select a node"
show-max-nodes="1"
></cosmoz-treenode>
</div>
</paper-button>
<paper-icon-button
Expand Down Expand Up @@ -271,13 +269,6 @@ class CosmozTreenodeButtonView extends translatable(PolymerElement) {
type: String,
value: 'Search or navigate to chosen destination',
},
/*
* Maximum number of shown nodes.
*/
showMaxNodes: {
type: Number,
value: 1,
},
/*
* Minimum length before an search
* starts.
Expand Down

0 comments on commit 4cafbfc

Please sign in to comment.