Correctly show no data message in Network Topology
Unhid the message on the div so that if there are no networks, routers, or connected instances it says this instead of a blank white box closes bug: #1661350 Change-Id: Id5f86a81125ff91c5824b51ca4a2141cabc2d0c4
This commit is contained in:
parent
0ab99a1963
commit
f35eaa2d13
@ -145,6 +145,12 @@ horizon.network_topology = {
|
||||
// set up loader first thing
|
||||
self.$loading_template.show();
|
||||
|
||||
if (self.data.networks.length === undefined) {
|
||||
$('.loader-inline').remove();
|
||||
$(self.svg_container).addClass('noinfo');
|
||||
return;
|
||||
}
|
||||
|
||||
self.create_vis();
|
||||
self.force_direction(0.05,70,-700);
|
||||
if(horizon.networktopologyloader.model !== null) {
|
||||
|
Loading…
Reference in New Issue
Block a user