Browse Source

HUE-5318 [editor] Clicking on the labels on snippet settings should add properties

Enrico Berti 9 years ago
parent
commit
591dbce5b0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      desktop/core/src/desktop/templates/config_ko_components.mako

+ 2 - 3
desktop/core/src/desktop/templates/config_ko_components.mako

@@ -39,7 +39,6 @@ from desktop.views import _ko
       margin: 4px 10px;
       float:left;
       text-align: right;
-      cursor: default;
     }
 
     .config-controls {
@@ -297,7 +296,7 @@ from desktop.views import _ko
 
   <script type="text/html" id="property">
     <div class="config-property" data-bind="visibleOnHover: { selector: '.hover-actions' }">
-      <label class="config-label">
+      <label class="config-label" data-bind="click: function(data, event){ $(event.target).siblings('.config-controls').find('.config-property-add-value a').click(); }">
         <!-- ko text: label --><!-- /ko --><!-- ko if: typeof helpText !== 'undefined' --><div class="property-help" data-bind="tooltip: { title: helpText(), placement: 'bottom' }"><i class="fa fa-question-circle-o"></i></div><!-- /ko -->
       </label>
       <div class="config-controls">
@@ -755,4 +754,4 @@ from desktop.views import _ko
       });
     })();
   </script>
-</%def>
+</%def>