Przeglądaj źródła

HUE-5254 [editor] The result count should be formatted

Enrico Berti 9 lat temu
rodzic
commit
10654185fa

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1231,7 +1231,7 @@ ${ hueIcons.symbols() }
         <li data-bind="click: function(){ currentQueryTab('queryResults'); }, css: {'active': currentQueryTab() == 'queryResults'}">
           <a class="inactive-action" href="#queryResults" data-toggle="tab">${_('Results')}
             <!-- ko if: result.size() && result.size().rows -->
-              (<span data-bind="text: result.size().rows" title="${ _('Number of rows') }"></span>)
+              (<span data-bind="text: result.size().rows.toLocaleString()" title="${ _('Number of rows') }"></span>)
             <!-- /ko -->
             <div class="inline-block inactive-action margin-left-10 pointer" title="${_('Search the results')}" data-bind="click: function(data, e){ $(e.target).parents('.snippet').find('.resultTable').hueDataTable().fnShowSearch() }"><i class="snippet-icon fa fa-search"></i></div>
             <div class="inline-block inactive-action pointer" title="${_('Expand results')}" rel="tooltip" data-bind="visible: !$root.isFullscreenMode() && !$root.isPlayerMode(), click: function(){ $root.isPlayerMode(true); }"><i class="snippet-icon fa fa-expand"></i></div>