SoapboxConfig: make displayFqn configurable
This commit is contained in:
parent
e03f551676
commit
6050991934
|
@ -42,7 +42,7 @@ export const defaultConfig = ImmutableMap({
|
||||||
}),
|
}),
|
||||||
allowedEmoji: allowedEmoji,
|
allowedEmoji: allowedEmoji,
|
||||||
verifiedCanEditName: false,
|
verifiedCanEditName: false,
|
||||||
displayFqn: false,
|
displayFqn: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
export function getSoapboxConfig(state) {
|
export function getSoapboxConfig(state) {
|
||||||
|
|
|
@ -41,6 +41,7 @@ const messages = defineMessages({
|
||||||
rawJSONLabel: { id: 'soapbox_config.raw_json_label', defaultMessage: 'Advanced: Edit raw JSON data' },
|
rawJSONLabel: { id: 'soapbox_config.raw_json_label', defaultMessage: 'Advanced: Edit raw JSON data' },
|
||||||
rawJSONHint: { id: 'soapbox_config.raw_json_hint', defaultMessage: 'Edit the settings data directly. Changes made directly to the JSON file will override the form fields above. Click "Save" to apply your changes.' },
|
rawJSONHint: { id: 'soapbox_config.raw_json_hint', defaultMessage: 'Edit the settings data directly. Changes made directly to the JSON file will override the form fields above. Click "Save" to apply your changes.' },
|
||||||
verifiedCanEditNameLabel: { id: 'soapbox_config.verified_can_edit_name_label', defaultMessage: 'Allow verified users to edit their own display name.' },
|
verifiedCanEditNameLabel: { id: 'soapbox_config.verified_can_edit_name_label', defaultMessage: 'Allow verified users to edit their own display name.' },
|
||||||
|
displayFqnLabel: { id: 'soapbox_config.display_fqn_label', defaultMessage: 'Display domain even for local accounts.' },
|
||||||
});
|
});
|
||||||
|
|
||||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||||
|
@ -241,6 +242,12 @@ class SoapboxConfig extends ImmutablePureComponent {
|
||||||
checked={soapbox.get('verifiedCanEditName') === true}
|
checked={soapbox.get('verifiedCanEditName') === true}
|
||||||
onChange={this.handleChange(['verifiedCanEditName'], (e) => e.target.checked)}
|
onChange={this.handleChange(['verifiedCanEditName'], (e) => e.target.checked)}
|
||||||
/>
|
/>
|
||||||
|
<Checkbox
|
||||||
|
name='verifiedCanEditName'
|
||||||
|
label={intl.formatMessage(messages.displayFqnLabel)}
|
||||||
|
checked={soapbox.get('displayFqn') === true}
|
||||||
|
onChange={this.handleChange(['displayFqn'], (e) => e.target.checked)}
|
||||||
|
/>
|
||||||
</FieldsGroup>
|
</FieldsGroup>
|
||||||
<FieldsGroup>
|
<FieldsGroup>
|
||||||
<div className='input with_block_label popup'>
|
<div className='input with_block_label popup'>
|
||||||
|
|
Loading…
Reference in New Issue