Merge pull request #16371 from joshuaswift/fix/js-disabled-message

JS is disabled alert
This commit is contained in:
Berkeley Martinez
2017-12-31 16:09:19 -08:00
committed by GitHub

View File

@ -3,6 +3,8 @@ import { connect } from 'react-redux';
import ns from './ns.json'; import ns from './ns.json';
import { isJSEnabledSelector } from './redux'; import { isJSEnabledSelector } from './redux';
import {Alert} from 'react-bootstrap';
const mainId = 'fcc-main-frame'; const mainId = 'fcc-main-frame';
@ -23,9 +25,12 @@ export class Preview extends PureComponent {
<div className={ `${ns}-preview` }> <div className={ `${ns}-preview` }>
{ {
!isJSEnabled && ( !isJSEnabled && (
<span className={ `${ns}-preview-js-warning` }> <Alert
bsStyle='info'
className={ `${ns}-preview-js-warning`}
>
JavaScript is disabled. Execute code to enable JavaScript is disabled. Execute code to enable
</span> </Alert>
) )
} }
<iframe <iframe