소스 검색

AMBARI-7363 Recommendations: ui changes for usability 2. (ababiichuk)

aBabiichuk 10 년 전
부모
커밋
3f932cfeef
3개의 변경된 파일24개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 1
      ambari-web/app/messages.js
  2. 15 0
      ambari-web/app/styles/application.less
  3. 9 4
      ambari-web/app/templates/common/configs/config_recommendation_popup.hbs

+ 0 - 1
ambari-web/app/messages.js

@@ -658,7 +658,6 @@ Em.I18n.translations = {
   'installer.step7.popup.validation.request.failed.body': 'Config validaition failed.',
   'installer.step7.popup.validation.warning.header': 'Configurations',
   'installer.step7.popup.validation.warning.body': 'Some service configurations are not configured properly. We recommend you review and change the highlighted configuration values. Are you sure you want to proceed without correcting configurations?',
-  'installer.step7.popup.validation.warning.errorDescription': ' value is less than the recommended default of ',
   'installer.step7.oozie.database.new': 'New Derby Database',
   'installer.step7.hive.database.new': 'New MySQL Database',
 

+ 15 - 0
ambari-web/app/styles/application.less

@@ -7005,3 +7005,18 @@ i.icon-asterisks {
 .table td.no-borders { border-top: none; }
 .table td.error { background-color: #f2dede; }
 .table td.warning { background-color: #fcf8e3; }
+
+#config-validation-warnings {
+  table {
+    tbody{
+      tr {
+        background:#fcf8e3;
+        border:1px solid #c09853;
+        border-right:none;
+        td {
+          min-width: 150px;
+        }
+      }
+    }
+  }
+}

+ 9 - 4
ambari-web/app/templates/common/configs/config_recommendation_popup.hbs

@@ -27,6 +27,9 @@
       <th>
         {{t common.property}}
       </th>
+      <th>
+        {{t common.value}}
+      </th>
       <th>
         {{t common.description}}
       </th>
@@ -41,12 +44,14 @@
               {{property.serviceName}}
             </td>
             <td>
-              {{property.displayName}}
+              {{property.name}}
+            </td>
+            <td>
+              {{property.value}}
             </td>
             <td>
-              <strong>{{property.description}}:</strong><br/>
-              <strong>{{property.value}}</strong>{{t installer.step7.popup.validation.warning.errorDescription}}
-              <strong>{{property.defaultValue}}</strong>
+              {{property.description}}<br/>
+              <strong>{{property.warnMessage}}</strong>
             </td>
           </tr>
         {{/if}}