Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
feat: When searching for APIs, empty input does not trigger the search
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani authored and brasseld committed Aug 29, 2019
1 parent 661f3b3 commit eda9b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/management/api/apis.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class ApisController {
$scope.$watch('$ctrl.query', (query: string, previousQuery: string) => {
$timeout.cancel(this.timer);
this.timer = $timeout(() => {
if (query !== undefined && query !== previousQuery && query.length > 3) {
if (query !== undefined && query !== previousQuery) {
this.search();
}
}, 300);
Expand Down
2 changes: 1 addition & 1 deletion src/portal/api/api-list.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class PortalApiListController {
$scope.$watch('apisCtrl.query', (query: string, previousQuery: string) => {
$timeout.cancel(this.timer);
this.timer = $timeout(() => {
if (query !== undefined && query !== previousQuery && query.length > 3) {
if (query !== undefined && query !== previousQuery) {
this.search();
}
}, 300);
Expand Down

0 comments on commit eda9b01

Please sign in to comment.