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-3.0.33 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.32 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.29 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.28 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.26 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.25 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.25 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.24.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.24.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.24 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.24 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.23 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.23 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.22 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.22 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-4.0.21.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.21.1 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.21 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.20 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
foreman_rh_cloud-3.0.19 webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js