mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 23:34:45 +00:00
multi tenancy adfs login (#5330)
* multi tenancy adfs login * custom saml login url * improve code * fix code * optimize code
This commit is contained in:
40
frontend/src/pages/org-admin/input-item.js
Normal file
40
frontend/src/pages/org-admin/input-item.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import { Input, Row, Col, Label } from 'reactstrap';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const propTypes = {
|
||||
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
changeValue: PropTypes.func.isRequired,
|
||||
displayName: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
class OrgSamlConfigInput extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
inputValue = (e) => {
|
||||
this.props.changeValue(e);
|
||||
}
|
||||
|
||||
render() {
|
||||
const { value, displayName } = this.props;
|
||||
return (
|
||||
<Fragment>
|
||||
<Row className="my-4">
|
||||
<Col md="3">
|
||||
<Label className="web-setting-label">{displayName}</Label>
|
||||
</Col>
|
||||
<Col md="5">
|
||||
<Input innerRef={input => {this.newInput = input;}} value={value} onChange={this.inputValue}/>
|
||||
</Col>
|
||||
</Row>
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
OrgSamlConfigInput.propTypes = propTypes;
|
||||
|
||||
export default OrgSamlConfigInput;
|
Reference in New Issue
Block a user