|
From: <tob...@us...> - 2014-07-17 19:26:41
|
Revision: 8571
http://sourceforge.net/p/bigdata/code/8571
Author: tobycraig
Date: 2014-07-17 19:26:38 +0000 (Thu, 17 Jul 2014)
Log Message:
-----------
Hide health tab for standalone deployments
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css 2014-07-17 19:08:47 UTC (rev 8570)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css 2014-07-17 19:26:38 UTC (rev 8571)
@@ -347,6 +347,11 @@
box-sizing: border-box;
}
+/* workbench checks if we're in HA mode and shows health tab if we are */
+#tab-selector a[data-target=health] {
+ display: none;
+}
+
.health-good {
background-color: lightgreen;
}
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-17 19:08:47 UTC (rev 8570)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-17 19:26:38 UTC (rev 8571)
@@ -1545,6 +1545,15 @@
})
}
+function showHealthTab() {
+ $.get('/status?health', function(data) {
+ if(data.deployment == 'HA') {
+ $('#tab-selector a[data-target=health]').show();
+ }
+ });
+}
+showHealthTab();
+
/* Performance */
$('#tab-selector a[data-target=performance]').click(loadPerformance);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|