mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
hack(channel-picker): Hide Salesforce for now
This commit is contained in:
parent
ef306fa52f
commit
7d7edb65bb
|
@ -102,7 +102,7 @@ export default class PreferencesSignatures extends React.Component {
|
|||
</div>
|
||||
<div className="render-mode">
|
||||
<input type="checkbox" id="render-mode" checked={this.state.editAsHTML} onClick={this._onToggleEditAsHTML} />
|
||||
<label>Edit raw HTML</label>
|
||||
<label htmlFor="render-mode">Edit raw HTML</label>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -58,10 +58,17 @@ class UpdateChannelSection extends React.Component {
|
|||
render() {
|
||||
const {current, available, saving} = this.state;
|
||||
|
||||
// HACK: Temporarily do not allow users to move on to the Salesforce channel.
|
||||
// In the future we could implement this server-side via a "public" flag.
|
||||
let allowed = available;
|
||||
if (current && current.name.toLowerCase() !== 'salesforce') {
|
||||
allowed = available.filter(c => c.name.toLowerCase() !== 'salesforce');
|
||||
}
|
||||
|
||||
return (
|
||||
<section>
|
||||
<h6>Updates</h6>
|
||||
<label forHtml="">Release channel: </label>
|
||||
<label>Release channel: </label>
|
||||
<select
|
||||
style={{minWidth: 130}}
|
||||
value={current.name}
|
||||
|
@ -69,7 +76,7 @@ class UpdateChannelSection extends React.Component {
|
|||
disabled={saving}
|
||||
>
|
||||
{
|
||||
available.map((channel) => {
|
||||
allowed.map((channel) => {
|
||||
return (<option value={channel.name} key={channel.name}>
|
||||
{channel.name[0].toUpperCase() + channel.name.substr(1)}
|
||||
</option>);
|
||||
|
|
Loading…
Reference in a new issue