Minor UI changes - Changed ONOS Node Cluster wording, removed 1 button, changed A button dialog prompt and changed timestamp format
diff --git a/web/ons-demo/index.html b/web/ons-demo/index.html
index ed31bee..68f841d 100644
--- a/web/ons-demo/index.html
+++ b/web/ons-demo/index.html
@@ -20,10 +20,10 @@
</div>
<div id='onos'>
- <div id='cluster-label'>ONOS Node Cluster</div>
+ <div id='cluster-label'>ONOS Nodes</div>
<div id='controllers'></div>
<div id='actions'>
- <div id='action-local' class='action'>1</div>
+ <!--<div id='action-local' class='action'>1</div>-->
<div id='action-reset' class='action'>R</div>
<div id='action-scale' class='action'>S</div>
<div id='action-all' class='action'>A</div>
@@ -82,4 +82,4 @@
<script src="js/app.js"></script>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/web/ons-demo/js/init.js b/web/ons-demo/js/init.js
index bf812aa..6328272 100644
--- a/web/ons-demo/js/init.js
+++ b/web/ons-demo/js/init.js
@@ -8,7 +8,7 @@
});
d3.select('#action-all').on('click', function () {
- var prompt = "Switch controllers to all?"
+ var prompt = "Add backup controllers?"
doConfirm(prompt, function (result) {
if (result) {
switchAll();
diff --git a/web/ons-demo/js/utils.js b/web/ons-demo/js/utils.js
index 1b4c38c..68e567f 100644
--- a/web/ons-demo/js/utils.js
+++ b/web/ons-demo/js/utils.js
@@ -79,7 +79,7 @@
update the app header using the current model
***************************************************************************************************/
function updateHeader() {
- d3.select('#lastUpdate').text(new Date());
+ d3.select('#lastUpdate').text(new Date().toLocaleString());
var activeSwitchCount = 0;
model.edgeSwitches.forEach(function (s) {