mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 17:33:18 +00:00
history feedback
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user