mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
history feedback
This commit is contained in:
@@ -130,11 +130,11 @@ class RepoListItem extends React.Component {
|
||||
this.props.onDirentItemClick(repo, filePath, dirent);
|
||||
}
|
||||
|
||||
onRepoItemClick = () => {
|
||||
onRepoItemClick = (e) => {
|
||||
if (!this.isCurrentRepo() || this.props.selectedPath !== '') {
|
||||
this.props.onRepoItemClick(this.props.repo);
|
||||
} else {
|
||||
this.onToggleClick();
|
||||
this.onToggleClick(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,6 +4,7 @@ import { gettext, PER_PAGE, filePath } from '../../utils/constants';
|
||||
import editUtilties from '../../utils/editor-utilties';
|
||||
import Loading from '../../components/loading';
|
||||
import HistoryListView from '../../components/history-list-view/history-list-view';
|
||||
import toaster from '../../components/toast';
|
||||
|
||||
const propTypes = {
|
||||
onItemClick: PropTypes.func.isRequired,
|
||||
@@ -88,6 +89,8 @@ class SidePanel extends React.Component {
|
||||
this.setState({isLoading: true});
|
||||
this.refershFileList();
|
||||
}
|
||||
let message = gettext('Successful restore.');
|
||||
toaster.success(message);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user