1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

[a11y] group repos, 'shared with all': enabled 'keyboard access'

This commit is contained in:
llj
2021-09-23 14:46:49 +08:00
parent 007ea2329c
commit 32502fabcd
2 changed files with 17 additions and 11 deletions

View File

@@ -169,7 +169,8 @@ class Item extends Component {
this.setState({isShowSharedDialog: false});
}
onToggleStarRepo = () => {
onToggleStarRepo = (e) => {
e.preventDefault();
const repoName = this.props.data.repo_name;
if (this.state.isStarred) {
seafileAPI.unstarItem(this.props.data.repo_id, '/').then(() => {