You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by is...@apache.org on 2018/04/10 16:59:32 UTC
[ambari] branch trunk updated: [AMBARI-23487] Cannot tell which
services are in maintenance mode. (#909)
This is an automated email from the ASF dual-hosted git repository.
ishanbha pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new d49f54d [AMBARI-23487] Cannot tell which services are in maintenance mode. (#909)
d49f54d is described below
commit d49f54d9773f6b0e1243008a1b08fad35ab5c65e
Author: Ishan Bhatt <is...@gmail.com>
AuthorDate: Tue Apr 10 12:59:30 2018 -0400
[AMBARI-23487] Cannot tell which services are in maintenance mode. (#909)
---
ambari-web/app/messages.js | 1 +
ambari-web/app/styles/application.less | 8 +++++++-
ambari-web/app/styles/common.less | 1 +
ambari-web/app/templates/main/service/menu_item.hbs | 3 +++
ambari-web/app/views/main/menu.js | 2 ++
5 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 0c243bb..70cc8d7 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -2044,6 +2044,7 @@ Em.I18n.translations = {
'services.service.summary.hiveserver2.jdbc.url.text': ' JDBC URL',
'services.service.summary.hiveserver2.endpoint.tooltip.text':'JDBC connection string for {0}',
'services.service.summary.hiveserver2.endpoint.value':'jdbc:hive2://{0}/;serviceDiscoveryMode={1};zooKeeperNamespace={2}',
+ 'services.service.summary.inMaintenanceMode.tooltip': 'Service is in maintenance mode',
'services.service.actions.downloadClientConfigs':'Download Client Configs',
'services.service.actions.downloadClientConfigs.fail.noConfigFile':'No configuration files defined for the component',
'services.service.actions.downloadClientConfigs.fail.popup.header':'{0} Configs',
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index 49eef8a..312486a 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -1173,10 +1173,16 @@ a.services-menu-blocks{
word-break:break-word;
}
- .glyphicon.glyphicon-refresh {
+ .glyphicon.glyphicon-refresh, .icon-medkit {
margin-left: 4px;
margin-right: 4px;
+ top: 0px;
}
+
+ .icon-medkit {
+ color: @maintenance-grey;
+ }
+
.menu-item-name.INSTALLED:not(.client-only-service) {
color: @health-status-red;
}
diff --git a/ambari-web/app/styles/common.less b/ambari-web/app/styles/common.less
index fbcdc9a..e892522 100644
--- a/ambari-web/app/styles/common.less
+++ b/ambari-web/app/styles/common.less
@@ -29,6 +29,7 @@
@health-status-yellow: #FFD13D;
@health-status-orange: #e98a41;
@maintenance-black: #000;
+@maintenance-grey: #999999;
@gray-text: #666;
/************************************************************************
* Health status(service/host/host component health)icon colors ends
diff --git a/ambari-web/app/templates/main/service/menu_item.hbs b/ambari-web/app/templates/main/service/menu_item.hbs
index 8ccefcc..72280d0 100644
--- a/ambari-web/app/templates/main/service/menu_item.hbs
+++ b/ambari-web/app/templates/main/service/menu_item.hbs
@@ -20,6 +20,9 @@
<span class="pull-right">
<i rel="tooltip" {{action goToConfigs target="view"}} {{bindAttr class=":glyphicon :glyphicon-refresh :restart-required-service view.content.isRestartRequired::hidden" data-original-title="view.restartRequiredMessage"}}></i>
</span>
+ <span class="pull-right">
+ <i rel="tooltip" {{bindAttr class=":icon-medkit :passive-state-service view.content.isInPassive::hidden" }} {{translateAttr data-original-title="services.service.summary.inMaintenanceMode.tooltip"}}></i>
+ </span>
{{#if view.content.alertsCount}}
<span {{bindAttr class=":icon-circle view.hasCriticalAlerts:service-alerts-critical:service-alerts-warning"}}></span>
{{/if}}
diff --git a/ambari-web/app/views/main/menu.js b/ambari-web/app/views/main/menu.js
index 3f61d9a..d243a41 100644
--- a/ambari-web/app/views/main/menu.js
+++ b/ambari-web/app/views/main/menu.js
@@ -176,11 +176,13 @@ App.SideNavServiceMenuView = Em.CollectionView.extend({
this.renderOnRoute();
App.tooltip(this.$(".restart-required-service"), {html:true, placement:"right"});
App.tooltip($("[rel='serviceHealthTooltip']"), {html:true, placement:"right"});
+ App.tooltip(this.$(".passive-state-service"), {html: true, placement: "top"});
},
willDestroyElement: function() {
App.router.location.removeObserver('lastSetURL', this, 'renderOnRoute');
this.$(".restart-required-service").tooltip('destroy');
+ this.$(".passive-state-service").tooltip('destroy');
},
activeServiceId:null,
--
To stop receiving notification emails like this one, please contact
ishanbha@apache.org.