浏览代码

HUE-4852 [metastore] List the tables that are going to be deleted in the popup

Adrian Yavorskyy 8 年之前
父节点
当前提交
42230a0
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      apps/metastore/src/metastore/templates/metastore.mako

+ 10 - 0
apps/metastore/src/metastore/templates/metastore.mako

@@ -508,6 +508,16 @@ ${ components.menubar() }
           <h3 id="dropTableMessage">${_('Do you really want to drop the selected table(s)?')}</h3>
         </div>
         <div class="modal-body">
+          <ul data-bind="foreach: selectedTables">
+            <!-- ko if: $index() <= 9 -->
+            <li>
+              <span data-bind="text: name"></span>
+            </li>
+            <!-- /ko -->
+          </ul>
+          <!-- ko if: selectedTables().length > 10 -->
+            ${_('and')} <span data-bind="text: selectedTables().length - 10"></span> ${_('others')}.<br>
+          <!-- /ko -->
           <label class="checkbox" style="display: inline-block; margin-top: 5px">
             <input type="checkbox" name="skip_trash" /> ${ _('Skip the trash') }
           </label>