소스 검색

[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);