You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import { inputTypes, sizes } from 'Helpers/Props';
|
|
import FieldSet from 'Components/FieldSet';
|
|
import FormGroup from 'Components/Form/FormGroup';
|
|
import FormLabel from 'Components/Form/FormLabel';
|
|
import FormInputGroup from 'Components/Form/FormInputGroup';
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
function AnalyticSettings(props) {
|
|
const {
|
|
settings,
|
|
onInputChange
|
|
} = props;
|
|
|
|
const {
|
|
analyticsEnabled
|
|
} = settings;
|
|
|
|
return (
|
|
<FieldSet legend={translate('Analytics')}>
|
|
<FormGroup size={sizes.MEDIUM}>
|
|
<FormLabel>Send Anonymous Usage Data</FormLabel>
|
|
|
|
<FormInputGroup
|
|
type={inputTypes.CHECK}
|
|
name="analyticsEnabled"
|
|
helpText="Send anonymous usage and error information to Radarr's servers. This includes information on your browser, which Radarr WebUI pages you use, error reporting as well as OS and runtime version. We will use this information to prioritize features and bug fixes."
|
|
helpTextWarning="Requires restart to take effect"
|
|
onChange={onInputChange}
|
|
{...analyticsEnabled}
|
|
/>
|
|
</FormGroup>
|
|
</FieldSet>
|
|
);
|
|
}
|
|
|
|
AnalyticSettings.propTypes = {
|
|
settings: PropTypes.object.isRequired,
|
|
onInputChange: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default AnalyticSettings;
|