cancel
Showing results for 
Search instead for 
Did you mean: 

How to separate two actions for the same type in a custom navigation nodes

former_member583621
Participant
0 Kudos
127

Hi experts,

I've al ready have a two custom navigation nodes in the explorer tree. Each navigation node have a custom action, and both have the same type, this looks like this:

  <context component="explorer-tree">
         <explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree">
             <explorer-tree:navigation-node id="Custom1" position="0"/>
             <explorer-tree:navigation-node id="Custom2" position="0"/>
             <explorer-tree:type-node code="Product" id="hmc_typenode_product"/>
             <explorer-tree:type-node code="CronJob" id="hmc_typenode_cronjob"/>
         </explorer-tree:explorer-tree>
     </context>

 <context merge-by="module" type="MyType" component="listviewactions" parent="Custom1">
         <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
             <y:group qualifier="common">
                 <y:label>actiongroup.common</y:label>
                 <y:action action-id="action.custom1" property="selectedObjects" />
             </y:group>
         </y:actions>
     </context>
 
     <context merge-by="module" type="MyTpe" component="listviewactions" parent="Custom2">
         <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
             <y:group qualifier="common">
                 <y:label>actiongroup.common</y:label>
                 <y:action action-id="action.custom2" property="selectedObjects" />
             </y:group>
         </y:actions>
     </context>


This works but the issue is that both view show both action buttons, I want to show only the action button related of each navigation node

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member583621
Participant
0 Kudos

Any idea?