فهرست منبع

HUE-5590 [importer] Allow to remove columns in manual mode

Romain Rigaux 9 سال پیش
والد
کامیت
6d7b633617
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -507,6 +507,9 @@ ${ assist.assistPanel() }
               <form class="form-inline" data-bind="foreach: columns">
                 <!-- ko if: $parent.outputFormat() == 'table' -->
                   <div data-bind="template: { name: 'table-field-template', data: $data }" class="margin-top-10 field"></div>
+                  <!-- ko if: $root.createWizard.source.inputFormat() == 'manual' -->
+                    <a data-bind="click: function() { $parent.columns.remove($data); }"><i class="fa fa-minus"></i> </a>
+                  <!-- /ko -->
                 <!-- /ko -->
 
                 <!-- ko if: $parent.outputFormat() == 'index' -->
@@ -514,8 +517,8 @@ ${ assist.assistPanel() }
                 <!-- /ko -->
               </form>
 
-              <!-- ko if: $parent.createWizard.source.inputFormat() == 'manual' && outputFormat() == 'table' -->
-                <a data-bind="click: function() { columns.push($root.loadDefaultField({isPartition: true})); }" class="pointer margin-left-20" title="${_('Add Operation')}"><i class="fa fa-plus"></i> ${_('Add Field')}</a>
+              <!-- ko if: $root.createWizard.source.inputFormat() == 'manual' && outputFormat() == 'table' -->
+                <a data-bind="click: function() { columns.push($root.loadDefaultField({})); }" class="pointer margin-left-20" title="${_('Add Field')}"><i class="fa fa-plus"></i> ${_('Add Field')}</a>
               <!-- /ko -->
             </div>
           </div>