Browse Source

[core] Automatically open map values and array items in the assist panel

Johan Ahlen 10 years ago
parent
commit
99f24ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/core/src/desktop/templates/ko_components.mako

+ 2 - 0
desktop/core/src/desktop/templates/ko_components.mako

@@ -408,6 +408,7 @@ from desktop.views import _ko
                     type: data.value.type
                   })
                 ]);
+                self.entries()[1].open(true);
               } else if (data.type == "struct") {
                 self.entries($.map(data.fields, function(field) {
                   return self.createEntry({
@@ -427,6 +428,7 @@ from desktop.views import _ko
                     type: data.item.type
                   })
                 ]);
+                self.entries()[0].open(true);
               }
             }
             self.loading(false);