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 c72ab748cd..9c9ecb8f73 100644 --- a/frontend/src/pages/org-admin/org-groups-search-groups.js +++ b/frontend/src/pages/org-admin/org-groups-search-groups.js @@ -235,6 +235,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; @@ -251,7 +260,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 0df86f5c97..e8cb1f51a9 100644 --- a/frontend/src/pages/org-admin/org-users-search-users.js +++ b/frontend/src/pages/org-admin/org-users-search-users.js @@ -142,6 +142,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; @@ -158,7 +167,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 e17120f959..b6c56c05e8 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 3ced973d33..0105dc9945 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 3afa123645..55f80fa083 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 083ec6fffe..d4f60a71ab 100644 --- a/frontend/src/pages/sys-admin/users/search-users.js +++ b/frontend/src/pages/sys-admin/users/search-users.js @@ -270,6 +270,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 { @@ -299,7 +308,7 @@ class SearchUsers extends Component { - +