diff --git a/frontend/src/components/dialog/share-to-group.js b/frontend/src/components/dialog/share-to-group.js index 0fef6e4db9..f672f73dc3 100644 --- a/frontend/src/components/dialog/share-to-group.js +++ b/frontend/src/components/dialog/share-to-group.js @@ -8,12 +8,14 @@ import { Utils } from '../../utils/utils'; import { seafileAPI } from '../../utils/seafile-api.js'; class GroupItem extends React.Component { + constructor(props) { super(props); this.state = { isOperationShow: false }; } + onMouseEnter = () => { this.setState({isOperationShow: true}); } diff --git a/frontend/src/components/dialog/share-to-user.js b/frontend/src/components/dialog/share-to-user.js index 3bc4ea9989..01c5a1704b 100644 --- a/frontend/src/components/dialog/share-to-user.js +++ b/frontend/src/components/dialog/share-to-user.js @@ -7,12 +7,14 @@ import { Button, Input } from 'reactstrap'; import { seafileAPI } from '../../utils/seafile-api.js'; class UserItem extends React.Component { + constructor(props) { super(props); this.state = { isOperationShow: false }; } + onMouseEnter = () => { this.setState({isOperationShow: true}); } diff --git a/frontend/src/components/file-chooser/repo-list-item.js b/frontend/src/components/file-chooser/repo-list-item.js index 34e70527b0..a48732b50a 100644 --- a/frontend/src/components/file-chooser/repo-list-item.js +++ b/frontend/src/components/file-chooser/repo-list-item.js @@ -46,14 +46,14 @@ class RepoListItem extends React.Component { {this.props.repo.repo_name} - { + {this.state.isShowChildren && ( - } + )} ); }