diff --git a/frontend/src/pages/org-admin/org-groups-search-groups.js b/frontend/src/pages/org-admin/org-groups-search-groups.js index 0166f7c08c..9807e3ee2b 100644 --- a/frontend/src/pages/org-admin/org-groups-search-groups.js +++ b/frontend/src/pages/org-admin/org-groups-search-groups.js @@ -248,6 +248,15 @@ class OrgGroupsSearchGroups extends Component { }); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.getItems(); + } + } + } + render() { const { query, isSubmitBtnActive } = this.state; @@ -264,7 +273,7 @@ class OrgGroupsSearchGroups extends Component {
- + diff --git a/frontend/src/pages/org-admin/org-users-search-users.js b/frontend/src/pages/org-admin/org-users-search-users.js index 732d968581..ccd6fe119f 100644 --- a/frontend/src/pages/org-admin/org-users-search-users.js +++ b/frontend/src/pages/org-admin/org-users-search-users.js @@ -150,6 +150,15 @@ class OrgUsersSearchUsers extends Component { }); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.getItems(); + } + } + } + render() { const { query, isSubmitBtnActive } = this.state; @@ -166,7 +175,7 @@ class OrgUsersSearchUsers extends Component { - + diff --git a/frontend/src/pages/sys-admin/groups/search-groups.js b/frontend/src/pages/sys-admin/groups/search-groups.js index ffd625c09c..5d69e24ea0 100644 --- a/frontend/src/pages/sys-admin/groups/search-groups.js +++ b/frontend/src/pages/sys-admin/groups/search-groups.js @@ -89,6 +89,15 @@ class SearchGroups extends Component { }); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.getGroups(); + } + } + } + render() { const { name, isSubmitBtnActive } = this.state; @@ -108,7 +117,7 @@ class SearchGroups extends Component { - + diff --git a/frontend/src/pages/sys-admin/orgs/search-orgs.js b/frontend/src/pages/sys-admin/orgs/search-orgs.js index 4226ff4a79..590d9cfffc 100644 --- a/frontend/src/pages/sys-admin/orgs/search-orgs.js +++ b/frontend/src/pages/sys-admin/orgs/search-orgs.js @@ -86,6 +86,15 @@ class SearchOrgs extends Component { }); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.getItems(); + } + } + } + render() { const { query, isSubmitBtnActive } = this.state; return ( @@ -104,7 +113,7 @@ class SearchOrgs extends Component { - + diff --git a/frontend/src/pages/sys-admin/repos/search-repos.js b/frontend/src/pages/sys-admin/repos/search-repos.js index 1af77ac8a6..fd74bec201 100644 --- a/frontend/src/pages/sys-admin/repos/search-repos.js +++ b/frontend/src/pages/sys-admin/repos/search-repos.js @@ -78,6 +78,15 @@ class SearchRepos extends Component { }); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.searchRepos(); + } + } + } + render() { const { name, isSubmitBtnActive } = this.state; return ( @@ -96,7 +105,7 @@ class SearchRepos extends Component { - + diff --git a/frontend/src/pages/sys-admin/users/search-users.js b/frontend/src/pages/sys-admin/users/search-users.js index 89df9f2151..293737789e 100644 --- a/frontend/src/pages/sys-admin/users/search-users.js +++ b/frontend/src/pages/sys-admin/users/search-users.js @@ -272,6 +272,15 @@ class SearchUsers extends Component { this.getItems(this.state.pageInfo.current_page + 1); }; + handleKeyDown = (e) => { + if (e.keyCode === 13) { + const { isSubmitBtnActive } = this.state; + if (isSubmitBtnActive) { + this.getItems(); + } + } + } + render() { const { query, isSubmitBtnActive } = this.state; const { @@ -301,7 +310,7 @@ class SearchUsers extends Component { - +