Skip to content

Commit

Permalink
fix search history. (#3894)
Browse files Browse the repository at this point in the history
* fix search history.

* add CHANGES.md
  • Loading branch information
Accelerator96 authored Aug 15, 2021
1 parent 9e0b1ee commit 11c74af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'));
});
Expand Down

0 comments on commit 11c74af

Please sign in to comment.