提交 076eabdd 编写于 作者: L lepdou

bugfix: release history page error when namespace has not release

上级 13d63d38
...@@ -50,6 +50,10 @@ function releaseHistoryController($scope, $location, AppUtil, ...@@ -50,6 +50,10 @@ function releaseHistoryController($scope, $location, AppUtil,
$scope.pageContext.namespaceName, $scope.pageContext.namespaceName,
$scope.page, PAGE_SIZE) $scope.page, PAGE_SIZE)
.then(function (result) { .then(function (result) {
if ($scope.page == 0){
$(".release-history").removeClass('hidden');
}
if (!result || result.length < PAGE_SIZE) { if (!result || result.length < PAGE_SIZE) {
$scope.hasLoadAll = true; $scope.hasLoadAll = true;
} }
...@@ -75,9 +79,6 @@ function releaseHistoryController($scope, $location, AppUtil, ...@@ -75,9 +79,6 @@ function releaseHistoryController($scope, $location, AppUtil,
$scope.page = $scope.page + 1; $scope.page = $scope.page + 1;
if ($scope.page == 1){
$(".release-history").removeClass('hidden');
}
}, function (result) { }, function (result) {
AppUtil.showErrorMsg(result, "加载发布历史信息出错"); AppUtil.showErrorMsg(result, "加载发布历史信息出错");
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册