LT-275: Adding action to Rename button

This commit is contained in:
Bruno Alves de Faria 2016-08-15 17:56:19 -03:00
parent d5619922cc
commit bd3af54c87
2 changed files with 3 additions and 3 deletions

View File

@ -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}}

View File

@ -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');