1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

add repo deleted page

This commit is contained in:
ilearnit
2018-12-08 10:29:13 +00:00
committed by shanshuirenjia
parent 4826c0b8d1
commit c61c134079
6 changed files with 152 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ class LibHistorySetting extends React.Component {
}
componentDidMount() {
seafileAPI.getRepoHistortLimit(this.props.repoID).then(res => {
seafileAPI.getRepoHistoryLimit(this.props.repoID).then(res => {
this.setState({
keepDays: res.data.keep_days,
allHistory: res.data.keep_days < 0 ? true : false,
@@ -44,7 +44,7 @@ class LibHistorySetting extends React.Component {
let reg = /^-?\d+$/;
let flag = reg.test(days);
if (flag) {
seafileAPI.setRepoHistortLimit(repoID, days).then(res => {
seafileAPI.setRepoHistoryLimit(repoID, days).then(res => {
this.setState({
keepDays: res.data.keep_days
});