diff --git a/app/src/components/integrations/containers/integrationInfoContainer/instancesSection/instancesSection.jsx b/app/src/components/integrations/containers/integrationInfoContainer/instancesSection/instancesSection.jsx index 1a99f639f9..a654704094 100644 --- a/app/src/components/integrations/containers/integrationInfoContainer/instancesSection/instancesSection.jsx +++ b/app/src/components/integrations/containers/integrationInfoContainer/instancesSection/instancesSection.jsx @@ -28,6 +28,7 @@ import { removePluginAction, addIntegrationAction, removeProjectIntegrationsByTypeAction, + enabledPluginSelector, } from 'controllers/plugins'; import { showModalAction } from 'controllers/modal'; import { @@ -115,10 +116,11 @@ const messages = defineMessages({ }); @connect( - (state) => ({ + (state, ownProps) => ({ projectId: projectIdSelector(state), accountRole: userAccountRoleSelector(state), userRole: activeProjectRoleSelector(state), + isEnabled: enabledPluginSelector(state, ownProps.instanceType), }), { showModalAction, @@ -142,6 +144,7 @@ export class InstancesSection extends Component { removePluginAction: PropTypes.func.isRequired, accountRole: PropTypes.string.isRequired, userRole: PropTypes.string.isRequired, + isEnabled: PropTypes.bool.isRequired, tracking: PropTypes.shape({ trackEvent: PropTypes.func, getTrackingData: PropTypes.func, @@ -297,6 +300,7 @@ export class InstancesSection extends Component { userRole, isGlobal, pluginDetails: { metadata }, + isEnabled, } = this.props; const isProjectIntegrationsExists = !!projectIntegrations.length; const disabled = !canUpdateSettings(accountRole, userRole); @@ -323,7 +327,7 @@ export class InstancesSection extends Component { onItemClick={onItemClick} isGlobal={isGlobal} /> - {this.multiple && !disabled && ( + {this.multiple && !disabled && isEnabled && (