remove https from toolbar
This commit is contained in:
parent
1aae9628c8
commit
bdd8df6301
2 changed files with 0 additions and 30 deletions
|
@ -7,7 +7,6 @@ const playUrl = require('../../../images/play.svg');
|
||||||
const stopUrl = require('../../../images/stop.svg');
|
const stopUrl = require('../../../images/stop.svg');
|
||||||
const preferencesUrl = require('../../../images/preferences.svg');
|
const preferencesUrl = require('../../../images/preferences.svg');
|
||||||
const editProjectNameUrl = require('../../../images/pencil.svg');
|
const editProjectNameUrl = require('../../../images/pencil.svg');
|
||||||
const helpUrl = require('../../../images/help.svg');
|
|
||||||
|
|
||||||
class Toolbar extends React.Component {
|
class Toolbar extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -94,30 +93,6 @@ class Toolbar extends React.Component {
|
||||||
Auto-refresh
|
Auto-refresh
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{
|
|
||||||
this.props.currentUser == null ?
|
|
||||||
null :
|
|
||||||
<div className="toolbar__serve-secure">
|
|
||||||
<input
|
|
||||||
id="serve-secure"
|
|
||||||
type="checkbox"
|
|
||||||
checked={this.props.project.serveSecure || false}
|
|
||||||
onChange={(event) => {
|
|
||||||
this.props.setServeSecure(event.target.checked);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label htmlFor="serve-secure" className="toolbar__serve-secure-label">
|
|
||||||
HTTPS
|
|
||||||
</label>
|
|
||||||
<button
|
|
||||||
className="toolbar__serve-secure-help"
|
|
||||||
onClick={() => this.props.showHelpModal('serveSecure')}
|
|
||||||
aria-label="help"
|
|
||||||
>
|
|
||||||
<InlineSVG src={helpUrl} alt="Help" />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
<div className={nameContainerClass}>
|
<div className={nameContainerClass}>
|
||||||
<a
|
<a
|
||||||
className="toolbar__project-name"
|
className="toolbar__project-name"
|
||||||
|
@ -187,15 +162,12 @@ Toolbar.propTypes = {
|
||||||
name: PropTypes.string.isRequired,
|
name: PropTypes.string.isRequired,
|
||||||
isEditingName: PropTypes.bool,
|
isEditingName: PropTypes.bool,
|
||||||
id: PropTypes.string,
|
id: PropTypes.string,
|
||||||
serveSecure: PropTypes.bool,
|
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
showEditProjectName: PropTypes.func.isRequired,
|
showEditProjectName: PropTypes.func.isRequired,
|
||||||
hideEditProjectName: PropTypes.func.isRequired,
|
hideEditProjectName: PropTypes.func.isRequired,
|
||||||
showHelpModal: PropTypes.func.isRequired,
|
|
||||||
infiniteLoop: PropTypes.bool.isRequired,
|
infiniteLoop: PropTypes.bool.isRequired,
|
||||||
autorefresh: PropTypes.bool.isRequired,
|
autorefresh: PropTypes.bool.isRequired,
|
||||||
setAutorefresh: PropTypes.func.isRequired,
|
setAutorefresh: PropTypes.func.isRequired,
|
||||||
setServeSecure: PropTypes.func.isRequired,
|
|
||||||
startSketch: PropTypes.func.isRequired,
|
startSketch: PropTypes.func.isRequired,
|
||||||
startAccessibleSketch: PropTypes.func.isRequired,
|
startAccessibleSketch: PropTypes.func.isRequired,
|
||||||
saveProject: PropTypes.func.isRequired,
|
saveProject: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -230,8 +230,6 @@ class IDEView extends React.Component {
|
||||||
hideEditProjectName={this.props.hideEditProjectName}
|
hideEditProjectName={this.props.hideEditProjectName}
|
||||||
openPreferences={this.props.openPreferences}
|
openPreferences={this.props.openPreferences}
|
||||||
preferencesIsVisible={this.props.ide.preferencesIsVisible}
|
preferencesIsVisible={this.props.ide.preferencesIsVisible}
|
||||||
serveSecure={this.props.project.serveSecure}
|
|
||||||
setServeSecure={this.props.setServeSecure}
|
|
||||||
setTextOutput={this.props.setTextOutput}
|
setTextOutput={this.props.setTextOutput}
|
||||||
setGridOutput={this.props.setGridOutput}
|
setGridOutput={this.props.setGridOutput}
|
||||||
setSoundOutput={this.props.setSoundOutput}
|
setSoundOutput={this.props.setSoundOutput}
|
||||||
|
|
Loading…
Reference in a new issue