Updated Branches:
  refs/heads/trunk 2b6dd0427 -> c78fe49d9

AMBARI-3629 Cleanup dialog for unable to delete host when no heartbeat. 
(ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/c78fe49d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/c78fe49d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/c78fe49d

Branch: refs/heads/trunk
Commit: c78fe49d97df99b6e4f2d271c1494efca8c1afa7
Parents: 2b6dd04
Author: aBabiichuk <[email protected]>
Authored: Wed Oct 30 19:28:10 2013 +0200
Committer: aBabiichuk <[email protected]>
Committed: Wed Oct 30 19:31:34 2013 +0200

----------------------------------------------------------------------
 ambari-web/app/messages.js                      |  9 ++++----
 .../main/host/details/doDeleteHostPopup.hbs     | 24 +++++++++++++-------
 2 files changed, 21 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/c78fe49d/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 6f441d4..67678f2 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1302,13 +1302,14 @@ Em.I18n.translations = {
   'hosts.decommission.popup.body':'Are you sure?',
   'hosts.decommission.popup.header':'Confirmation',
   'hosts.delete.popup.body':'Are you sure you want to delete host <i>{0}</i>?',
-  'hosts.delete.popup.body.msg1':'This will remove the host from Ambari\'s 
management. Ambari will ignore any communications from this host.',
-  'hosts.delete.popup.body.msg2':'Installed bits of service components will 
not be removed from the system. Individual service components should not be 
restarted later to join the cluster. This will introduce inconsistencies in 
monitoring data.',
-  'hosts.delete.popup.body.msg3':'Nagios service should be restarted for 
alerts and notifications to work properly. ZooKeeper service should be 
restarted if any ZooKeeper components are removed. Go to the <i>Services</i> 
page to restart services.',
+  'hosts.delete.popup.body.msg1':'By removing this host, Ambari will ignore 
future communications from this host. Software packages will not be removed 
from the host. The components on the host should not be restarted. If you wish 
to readd this host to the cluster, be sure to clean the host.',
+  'hosts.delete.popup.body.msg2':'After deleting this host, Nagios should be 
restarted to remove this host from Nagios monitoring. Go to the <i>Services</i> 
page to restart Nagios.',
+  'hosts.delete.popup.body.msg3':'If this host was hosting a Zookeeper Server, 
the Zookeeper Service should be restarted. Go to the <i>Services</i> page.',
   'hosts.delete.popup.body.msg4':'<b>WARNING!</b> Delete the last <i>{0}</i> 
component[s] in the cluster?</br>Deleting the last components in the cluster 
could result in permanent loss of service data.',
+  'hosts.delete.popup.body.msg.unknownComponents':'This host does not appear 
to be online and Ambari communication with the Agent has been lost.',
   'hosts.delete.popup.header':'Confirmation',
   'hosts.delete.popup.title':'Delete Host',
-  'hosts.delete.popup.unknownComponents':'Components with unknown status:',
+  'hosts.delete.popup.unknownComponents':'The following components have 
unknown status:',
   'hosts.cant.do.popup.title':'Unable to Delete Host',
   'hosts.cant.do.popup.masterList.body':'Host cannot be deleted with the 
master components installed',
   'hosts.cant.do.popup.masterList.body.end':'The master components on this 
host must to be stopped and moved to a different host to be able to delete this 
host',

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/c78fe49d/ambari-web/app/templates/main/host/details/doDeleteHostPopup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/details/doDeleteHostPopup.hbs 
b/ambari-web/app/templates/main/host/details/doDeleteHostPopup.hbs
index 9a83447..809a053 100644
--- a/ambari-web/app/templates/main/host/details/doDeleteHostPopup.hbs
+++ b/ambari-web/app/templates/main/host/details/doDeleteHostPopup.hbs
@@ -15,17 +15,25 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 }}
-
-<p><i class="icon-warning-sign"></i> {{{deletePopupBody}}}</p>
 {{#if unknownComponents}}
-  <div class="alert">
-  {{t hosts.delete.popup.unknownComponents}}<br />
-    <i>{{unknownComponents}}</i>
+  {{t hosts.delete.popup.unknownComponents}}
+  <br /><br />
+  <div class='row-fluid'>
+    <div class='tinyoffset span10'>
+      <i>{{unknownComponents}}</i>
+    </div>
   </div>
+  <br />
 {{/if}}
-<p>{{t hosts.delete.popup.body.msg1}}</p>
-<p>{{t hosts.delete.popup.body.msg2}}</p>
-<p><span class="label label-important">{{t common.important}}</span> {{t 
hosts.delete.popup.body.msg3}}</p>
+<p><i class="icon-warning-sign"></i> {{{deletePopupBody}}}</p>
+<div class='alert'><strong>{{t common.important}}:</strong>
+  {{#if unknownComponents}}
+    {{t hosts.delete.popup.body.msg.unknownComponents}}
+  {{/if}}
+  {{t hosts.delete.popup.body.msg1}}
+</div>
+<div class='alert'><strong>{{t common.important}}:</strong> {{t 
hosts.delete.popup.body.msg2}}</div>
+<div class='alert'><strong>{{t common.important}}:</strong> {{t 
hosts.delete.popup.body.msg3}}</div>
 {{#if lastComponent}}
   <div class="alert-error row-fluid">
       <div class='tinyspan tinyoffset'>{{view Ember.Checkbox 
checkedBinding="enablePrimary"}}</div>

Reply via email to