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

add notice

This commit is contained in:
ilearnit
2018-12-10 04:05:54 +00:00
committed by shanshuirenjia
parent c61c134079
commit 563f0020d1
3 changed files with 17 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import toaster from '../toast';
import { Button, Modal, ModalHeader, ModalBody, Form, FormGroup, Label, Input } from 'reactstrap';
import { seafileAPI } from '../../utils/seafile-api.js';
@@ -44,7 +45,9 @@ class LibHistorySetting extends React.Component {
let reg = /^-?\d+$/;
let flag = reg.test(days);
if (flag) {
let message = gettext('Successfully set library history.');
seafileAPI.setRepoHistoryLimit(repoID, days).then(res => {
toaster.success(message);
this.setState({
keepDays: res.data.keep_days
});