Răsfoiți Sursa

HUE-6077 [editor] Improve risk alerting messages

Romain Rigaux 8 ani în urmă
părinte
comite
ce3d1de749

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -1808,7 +1808,7 @@ from notebook.conf import get_ordered_interpreters
         <!-- ko if: hasMissingRisks() -->
         <div class="assist-flex-fill">
           <br>
-          <a href="javascript:void(0)" data-bind="visible: activeTables().length > 0, click: function() { huePubSub.publish('editor.table.stats.upload', activeTables()); }, attr: { 'title': ('${ _("Add available table and columns") }'  + (isMissingDDL() ? ' DDL' : '') + (isMissingStats() ? ' stats' : '')) }">
+          <a href="javascript:void(0)" data-bind="visible: activeTables().length > 0, click: function() { huePubSub.publish('editor.table.stats.upload', activeTables()); }, attr: { 'title': ('${ _("Add missing table and columns ") }'  + (isMissingDDL() ? 'DDL' : '') + (isMissingDDL() && isMissingStats() ? ' ${ _("and") } ' : '') + (isMissingStats() ? 'stats' : '')) }">
             <i class="fa fa-fw fa-plus-circle"></i> ${_('Improve Analysis')}
           </a>
         </div>

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

@@ -1058,7 +1058,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
         <!-- /ko -->
       <!-- /ko -->
       <!-- ko if: topRisk().risk == 'medium' -->
-        <div class="round-icon error" data-bind="click: function(){ showOptimizer(! showOptimizer()) }, attr: { 'title': showOptimizer() ? '${ _ko('Close Validator') }' : '${ _ko('Open Validator') }'}">
+        <div class="round-icon warning" data-bind="click: function(){ showOptimizer(! showOptimizer()) }, attr: { 'title': showOptimizer() ? '${ _ko('Close Validator') }' : '${ _ko('Open Validator') }'}">
           <i class="fa fa-exclamation"></i>
         </div>
         <!-- ko if: showOptimizer -->