浏览代码

Fix directory browsing in dashboard

Peter Woodman 12 年之前
父节点
当前提交
5de1caf057
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mod/dashboard/app/scripts/controllers/browser.js
  2. 0 0
      mod/dashboard/resources/resources.go

+ 1 - 1
mod/dashboard/app/scripts/controllers/browser.js

@@ -65,7 +65,7 @@ angular.module('etcdControlPanel')
       //hide any errors
       //hide any errors
       $('#etcd-browse-error').hide();
       $('#etcd-browse-error').hide();
       // Looking at a directory if we got an array
       // Looking at a directory if we got an array
-      if (data.dir === true) {
+      if (data.node.dir === true) {
         $scope.list = data.node.nodes;
         $scope.list = data.node.nodes;
         $scope.preview = 'etcd-preview-hide';
         $scope.preview = 'etcd-preview-hide';
       } else {
       } else {

文件差异内容过多而无法显示
+ 0 - 0
mod/dashboard/resources/resources.go


部分文件因为文件数量过多而无法显示