fix(ui): avoid reloading page if no entries are found
only load initial page if there are no query parameters present
Closes
MODIFY
manager/ui/war/plugins/api-manager/ts/consumer/consumer-apis.ts
manager/ui/war/plugins/api-manager/ts/consumer/consumer-apis.ts
@@ -43,8 +43,10 @@ _module.controller("Apiman.ConsumerApisController",
})
};
+
function loadFirstPage() {
- if ($scope.apis.length == 0) {
+ // only load first page if there are no query params
+ if ($scope.apis.length == 0 && !$location.search().q) {
$scope.searchSvcs('*', 1, 12);
}
}

MODIFY
manager/ui/war/plugins/api-manager/ts/consumer/consumer-orgs.ts
manager/ui/war/plugins/api-manager/ts/consumer/consumer-orgs.ts
@@ -44,7 +44,8 @@ _module.controller("Apiman.ConsumerOrgsController",
};
function loadFirstPage() {
- if ($scope.orgs.length == 0) {
+ // only load first page if there are no query params
+ if ($scope.orgs.length == 0 && !$location.search().q) {
$scope.searchOrg('*', 1, 12);
}
}

fix(ui): avoid reloading page if no entries are found

only load initial page if there are no query parameters present

Closes #1796