mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label } from 'reactstrap';
|
||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
|
||||
import { gettext, enableEncryptedLibrary } from '../../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
@@ -201,7 +201,7 @@ class CreateRepoDialog extends React.Component {
|
||||
</div>
|
||||
}
|
||||
</Form>
|
||||
<Label className="err-message">{this.state.errMessage}</Label>
|
||||
{this.state.errMessage && <Alert color="danger">{this.state.errMessage}</Alert>}
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="primary" onClick={this.handleSubmit}>{gettext('Submit')}</Button>
|
||||
|
Reference in New Issue
Block a user