changes - ready to be tested

This commit is contained in:
okbel
2018-03-19 15:10:14 -03:00
parent 40782a5d0b
commit 346a099c1b
3 changed files with 5 additions and 0 deletions
@@ -465,6 +465,8 @@ const mapStateToProps = state => ({
activeStreamTab: state.stream.activeTab,
previousStreamTab: state.stream.previousTab,
commentClassNames: state.stream.commentClassNames,
// @Deprecated plugin_config
pluginsConfig: state.config.plugins_config || state.config.plugin_config,
sortOrder: state.stream.sortOrder,
sortBy: state.stream.sortBy,
@@ -74,6 +74,8 @@ class Slot extends React.Component {
const { plugins } = this.context;
let children = this.getChildren();
// @Deprecated plugin_config
const pluginsConfig =
get(reduxState, 'config.plugins_config') ||
get(reduxState, 'config.plugin_config') ||
@@ -87,6 +87,7 @@ class PluginsService {
getSlotComponentProps(component, reduxState, props, queryData) {
if (
process.env.NODE_ENV !== 'production' &&
!!get(reduxState, 'config.plugin_config') &&
this.showPluginsConfigWarning
) {