add support for autocomplete delay

This commit is contained in:
Aviral Dasgupta 2017-02-20 19:26:40 +05:30
parent 2d39b25334
commit 32dd89774e
No known key found for this signature in database
GPG key ID: 5FD1E9F4FFD3DA80
4 changed files with 24 additions and 6 deletions

View file

@ -508,6 +508,15 @@ module.exports = React.createClass({
{ this._renderUrlPreviewSelector() }
{ SETTINGS_LABELS.map( this._renderSyncedSetting ) }
{ THEMES.map( this._renderThemeSelector ) }
<table>
<tbody>
<tr>
<td><strong>Autocomplete Delay (ms): </strong></td>
<td><input type="number" defaultValue={UserSettingsStore.getLocalSetting('autocompleteDelay', 200)}
onChange={(e) => UserSettingsStore.setLocalSetting('autocompleteDelay', +e.target.value)} /> </td>
</tr>
</tbody>
</table>
</div>
</div>
);