Commit 89c6928d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Hide empty private network list

parent 0f84ef48
......@@ -517,11 +517,11 @@
check_empty: function() {
views.NetworksCollectionView.__super__.check_empty.apply(this, arguments);
//if (this.$(".private").children().length == 0) {
//this.$(".private").hide();
//} else {
//this.$(".private").show();
//}
if (this.collection.filter(function(n){ return !n.is_public()}).length == 0) {
this.$(".private").hide();
} else {
this.$(".private").show();
}
},
add_model: function(m) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment