Remove source Role concept from client
parent
7588dcbf63
commit
fd0554aaa6
|
@ -422,5 +422,4 @@ export const DEFAULT_SOURCE = {
|
||||||
telegraf: 'telegraf',
|
telegraf: 'telegraf',
|
||||||
insecureSkipVerify: false,
|
insecureSkipVerify: false,
|
||||||
metaUrl: '',
|
metaUrl: '',
|
||||||
role: 'viewer',
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
import React, {PropTypes} from 'react'
|
import React, {PropTypes} from 'react'
|
||||||
import classnames from 'classnames'
|
import classnames from 'classnames'
|
||||||
import {connect} from 'react-redux'
|
import {connect} from 'react-redux'
|
||||||
|
|
||||||
import QuestionMarkTooltip from 'shared/components/QuestionMarkTooltip'
|
|
||||||
|
|
||||||
import {insecureSkipVerifyText} from 'shared/copy/tooltipText'
|
|
||||||
import {USER_ROLES} from 'src/admin/constants/dummyUsers'
|
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
|
|
||||||
|
import {insecureSkipVerifyText} from 'shared/copy/tooltipText'
|
||||||
|
|
||||||
import {SUPERADMIN_ROLE} from 'src/auth/Authorized'
|
import {SUPERADMIN_ROLE} from 'src/auth/Authorized'
|
||||||
import {REQUIRED_ROLE_COPY} from 'src/sources/constants'
|
|
||||||
|
|
||||||
const SourceForm = ({
|
const SourceForm = ({
|
||||||
source,
|
source,
|
||||||
|
@ -111,30 +107,6 @@ const SourceForm = ({
|
||||||
value={source.telegraf}
|
value={source.telegraf}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{isUsingAuth
|
|
||||||
? <div className="form-group col-xs-12 col-sm-6">
|
|
||||||
<label htmlFor="sourceRole">
|
|
||||||
Required Role{' '}
|
|
||||||
<QuestionMarkTooltip
|
|
||||||
tipID="role"
|
|
||||||
tipContent={REQUIRED_ROLE_COPY}
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
<select
|
|
||||||
className="form-control"
|
|
||||||
id="sourceRole"
|
|
||||||
name="role"
|
|
||||||
onChange={onInputChange}
|
|
||||||
value={source.role}
|
|
||||||
>
|
|
||||||
{USER_ROLES.map(({name}) =>
|
|
||||||
<option key={name} value={name}>
|
|
||||||
{name}
|
|
||||||
</option>
|
|
||||||
)}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
: null}
|
|
||||||
<div className="form-group col-xs-12">
|
<div className="form-group col-xs-12">
|
||||||
<div className="form-control-static">
|
<div className="form-control-static">
|
||||||
<input
|
<input
|
||||||
|
|
Loading…
Reference in New Issue