1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

history feedback

This commit is contained in:
zxj96
2019-06-03 21:04:19 +08:00
parent 7f795d3816
commit 925823e10a
2 changed files with 5 additions and 2 deletions

View File

@@ -130,11 +130,11 @@ class RepoListItem extends React.Component {
this.props.onDirentItemClick(repo, filePath, dirent); this.props.onDirentItemClick(repo, filePath, dirent);
} }
onRepoItemClick = () => { onRepoItemClick = (e) => {
if (!this.isCurrentRepo() || this.props.selectedPath !== '') { if (!this.isCurrentRepo() || this.props.selectedPath !== '') {
this.props.onRepoItemClick(this.props.repo); this.props.onRepoItemClick(this.props.repo);
} else { } else {
this.onToggleClick(); this.onToggleClick(e);
} }
} }

View File

@@ -4,6 +4,7 @@ import { gettext, PER_PAGE, filePath } from '../../utils/constants';
import editUtilties from '../../utils/editor-utilties'; import editUtilties from '../../utils/editor-utilties';
import Loading from '../../components/loading'; import Loading from '../../components/loading';
import HistoryListView from '../../components/history-list-view/history-list-view'; import HistoryListView from '../../components/history-list-view/history-list-view';
import toaster from '../../components/toast';
const propTypes = { const propTypes = {
onItemClick: PropTypes.func.isRequired, onItemClick: PropTypes.func.isRequired,
@@ -88,6 +89,8 @@ class SidePanel extends React.Component {
this.setState({isLoading: true}); this.setState({isLoading: true});
this.refershFileList(); this.refershFileList();
} }
let message = gettext('Successful restore.');
toaster.success(message);
}); });
} }