GUI -- Added enable() function to flash service, to allow topo view to disable flash messages while restoring state..
Change-Id: I1c904d0b69bf707ffa08b423ac5d4ecf7b0a7ff2
diff --git a/web/gui/src/main/webapp/app/view/topo/topo.js b/web/gui/src/main/webapp/app/view/topo/topo.js
index 2233bb2..24b40bd 100644
--- a/web/gui/src/main/webapp/app/view/topo/topo.js
+++ b/web/gui/src/main/webapp/app/view/topo/topo.js
@@ -273,10 +273,12 @@
$log.debug('TOPO---- Prefs State:', prefsState);
+ flash.enable(false);
toggleInstances(prefsState.insts);
toggleSummary(prefsState.summary);
toggleDetails(prefsState.detail);
toggleSprites(prefsState.sprites);
+ flash.enable(true);
}
@@ -362,7 +364,9 @@
function (proj) {
projection = proj;
$log.debug('** We installed the projection: ', proj);
+ flash.enable(false);
toggleMap(prefsState.bg);
+ flash.enable(true);
}
);
spriteG = zoomLayer.append ('g').attr('id', 'topo-sprites');