Sha256: 5fe2bdd37bf05815d3294da2b84738f2d2551c04cc1a5bd5af51c9461bca3aa2

Contents?: true

Size: 965 Bytes

Versions: 53

Compression:

Stored size: 965 Bytes

Contents

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import InsightsSyncSwitcher from '../InsightsSyncSwitcher';
import './insightsSettings.scss';

class InsightsSettings extends Component {
  componentDidMount() {
    const { getInsightsSyncSettings } = this.props;
    getInsightsSyncSettings();
  }

  render() {
    const { insightsSyncEnabled, setInsightsSyncEnabled } = this.props;
    return (
      <div className="insights_settings">
        <h3>{__('Settings')}</h3>
        <InsightsSyncSwitcher
          insightsSyncEnabled={insightsSyncEnabled}
          setInsightsSyncEnabled={setInsightsSyncEnabled}
        />
      </div>
    );
  }
}

InsightsSettings.propTypes = {
  insightsSyncEnabled: PropTypes.bool.isRequired,
  getInsightsSyncSettings: PropTypes.func.isRequired,
  setInsightsSyncEnabled: PropTypes.func.isRequired,
};

export default InsightsSettings;

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.18.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.18 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-2.0.18 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.18 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.17 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-2.0.17 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.17 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-2.0.16 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.16 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.16 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.15 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-2.0.15 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.15 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.14 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-2.0.14 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.14 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-0.9.14 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-0.9.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-1.0.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js