Added flash messages.
Change-Id: If3f8650b5dc977dca27fb764ab57f2e11a21682d
diff --git a/web/gui/src/main/webapp/feedback.js b/web/gui/src/main/webapp/feedback.js
index 7cebdc1..10f87c9 100644
--- a/web/gui/src/main/webapp/feedback.js
+++ b/web/gui/src/main/webapp/feedback.js
@@ -32,8 +32,8 @@
// Config variables
var w = '100%',
h = 200,
- fade = 500,
- showFor = 2000,
+ fade = 200,
+ showFor = 500,
vb = '-200 -' + (h/2) + ' 400 ' + h,
xpad = 20,
ypad = 10;
diff --git a/web/gui/src/main/webapp/topo2.js b/web/gui/src/main/webapp/topo2.js
index 1222f9c..9db6461 100644
--- a/web/gui/src/main/webapp/topo2.js
+++ b/web/gui/src/main/webapp/topo2.js
@@ -841,12 +841,14 @@
two: getSelId(1),
ids: [ getSelId(0), getSelId(1) ]
});
+ network.view.flash('Host-to-Host connectivity added');
}
function showTrafficAction() {
// force intents hover mode
hoverMode = 1;
showSelectTraffic();
+ network.view.flash('Related Traffic');
}
function showSelectTraffic() {
@@ -869,12 +871,14 @@
function showAllTrafficAction() {
sendMessage('requestAllTraffic', {});
+ network.view.flash('All Traffic');
}
function showDeviceLinkFlowsAction() {
// force intents hover mode
hoverMode = 2;
showDeviceLinkFlows();
+ network.view.flash('Device Flows');
}
function showDeviceLinkFlows() {