未验证 提交 11c74af7 编写于 作者: Z Zhuohao Li 提交者: GitHub

fix search history. (#3894)

* fix search history.

* add CHANGES.md
上级 9e0b1ee9
......@@ -76,6 +76,7 @@ Apollo 1.9.0
* [fix apollo config data loader with profiles](https://github.com/ctripcorp/apollo/pull/3870)
* [polish log](https://github.com/ctripcorp/apollo/pull/3882)
* [add history query](https://github.com/ctripcorp/apollo/pull/3878)
* [fix history query](https://github.com/ctripcorp/apollo/pull/3894)
------------------
All issues and pull requests are [here](https://github.com/ctripcorp/apollo/milestone/6?closed=1)
......
......@@ -870,6 +870,7 @@ function directive($window, $translate, toastr, AppUtil, EventManager, Permissio
function searchHistory(namespace) {
namespace.commits = [];
namespace.commitPage = 0;
namespace.hasLoadAllCommit = false;
var size = 10;
CommitService.find_commits(scope.appId,
scope.env,
......@@ -888,6 +889,7 @@ function directive($window, $translate, toastr, AppUtil, EventManager, Permissio
result[i].changeSets = JSON.parse(result[i].changeSets);
namespace.commits.push(result[i]);
}
namespace.commitPage++
}, function (result) {
toastr.error(AppUtil.errorMsg(result), $translate.instant('ApolloNsPanel.LoadingHistoryError'));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册