LT-275: Adding action to Rename button
This commit is contained in:
parent
d5619922cc
commit
bd3af54c87
@ -5,8 +5,8 @@
|
||||
<div class="tree-leaf">
|
||||
<span>{{instance.value.label}}</span>
|
||||
<div class="actions clearfix">
|
||||
<button class="pull-left">Rename</button>
|
||||
<button class="pull-right">Add description</button>
|
||||
<button class="pull-left btn-rename">Rename</button>
|
||||
<button class="pull-right brn-description">Add description</button>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@ -91,7 +91,7 @@ Template.measureFlow.onCreated(() => {
|
||||
});
|
||||
|
||||
Template.measureFlow.events({
|
||||
'click .measure-flow .btn-add'(event, instance) {
|
||||
'click .measure-flow .btn-add, click .measure-flow .btn-rename'(event, instance) {
|
||||
// Set the open state for the component
|
||||
instance.state.set('open');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user