浏览代码

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

Johan Ahlen 10 年之前
父节点
当前提交
99f24ef
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);