mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 05:54:07 +08:00
changes - ready to be tested
This commit is contained in:
@@ -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
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user