Преглед на файлове

AMBARI-3621 cleanup dialog for unable to delete host. (ababiichuk)

aBabiichuk преди 11 години
родител
ревизия
035f286498
променени са 2 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 1 1
      ambari-web/app/messages.js
  2. 8 3
      ambari-web/app/templates/main/host/details/raiseDeleteComponentErrorPopup.hbs

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

@@ -1300,7 +1300,7 @@ Em.I18n.translations = {
   'hosts.delete.popup.header':'Confirmation',
   'hosts.delete.popup.title':'Delete Host',
   'hosts.delete.popup.unknownComponents':'Components with unknown status:',
-  'hosts.cant.do.popup.title':'Delete Host Error',
+  'hosts.cant.do.popup.title':'Unable to Delete Host',
   'hosts.cant.do.popup.masterList.body':'Host with {0} master components cannot be deleted',
   'hosts.cant.do.popup.nonDeletableList.body':'Deletion of the following {0} components is not supported. ',
   'hosts.cant.do.popup.runningList.body':'Host cannot be deleted with the following {0} components running. ',

+ 8 - 3
ambari-web/app/templates/main/host/details/raiseDeleteComponentErrorPopup.hbs

@@ -17,8 +17,13 @@
 }}
 
 <p><i class="icon-warning-sign"></i> {{componentsBody}}</p>
-<i>{{componentsStr}}</i>
+<div class='row-fluid'>
+  <div class='tinyoffset span10'>
+    <i>{{componentsStr}}</i>
+  </div>
+</div>
+
 {{#if showBodyEnd}}
-    <br /><br />
-    <p>{{componentsBodyEnd}}</p>
+    <br />
+    <div class='alert alert-warning'><strong>{{t common.important}}:</strong> {{componentsBodyEnd}}</div>
 {{/if}}