diff --git a/assets/js/src/listing/listing.jsx b/assets/js/src/listing/listing.jsx index addeaab843..eab7749572 100644 --- a/assets/js/src/listing/listing.jsx +++ b/assets/js/src/listing/listing.jsx @@ -69,13 +69,33 @@ define( ); } - var item_actions = ( + var custom_actions = this.props.item_actions; + var item_actions = false; + + if(custom_actions.length > 0) { + item_actions = custom_actions.map(function(action, index) { + return ( + + + { action.label } + + {(index < (custom_actions.length - 1)) ? ' | ' : ''} + + ); + }.bind(this)); + } else { + item_actions = ( + + Edit + + ); + } + + var actions = (