瀏覽代碼

HUE-5639 [importer] Add hide/show properties to db field

Enrico Berti 9 年之前
父節點
當前提交
9dcd96f
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 5 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -666,7 +666,11 @@ ${ assist.assistPanel() }
     </label>
 
     <span data-bind="visible: level() == 0 || ($parent.type() != 'array' && $parent.type() != 'map')">
-       <input type="text" class="input-small" placeholder="${ _('Field comment') }" data-bind="value: comment">
+      <a href="javascript:void(0)" title="${ _('Show field properties') }" data-bind="css: {'inactive-action': !showProperties()}, click: function() {showProperties(!showProperties()) }"><i class="fa fa-sliders"></i></a>
+
+      <span data-bind="visible: showProperties">
+        <input type="text" class="input-medium margin-left-5" placeholder="${ _('Field comment') }" data-bind="value: comment">
+      </span>
     </span>
 
     <!-- ko if: level() > 0 && $parent.type() == 'struct' && $parent.nested().length > 1 -->