From c2cd703f0669d3c4db951eb71781b8f6edd70afd Mon Sep 17 00:00:00 2001 From: Franc Camps-Febrer Date: Thu, 31 Jan 2019 12:42:52 -0500 Subject: [PATCH] Add enabled sites marker from data object --- src/components/Dashboard.jsx | 5 +++-- src/components/SourceOverlay.jsx | 2 +- src/components/Toolbar.jsx | 2 +- src/reducers/schema/siteSchema.js | 3 ++- src/scss/sourceoverlay.scss | 1 + src/selectors/index.js | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 0e770de..4e5168a 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -92,6 +92,7 @@ class Dashboard extends React.Component { render () { const { actions, app, domain, ui } = this.props + console.log(app) return (
state, - state => injectSource("Hromadske.tv - Paratroopers Video"), + state => state, + // state => injectSource("Hromadske.tv - Paratroopers Video"), mapDispatchToProps )(Dashboard) diff --git a/src/components/SourceOverlay.jsx b/src/components/SourceOverlay.jsx index aab94bf..c5214c9 100644 --- a/src/components/SourceOverlay.jsx +++ b/src/components/SourceOverlay.jsx @@ -141,7 +141,7 @@ class SourceOverlay extends React.Component {
) : null - + console.log(this.props) console.log(this.state.idx) console.log(this.props.source.paths.length) const forwardArrow = this.state.idx < this.props.source.paths.length - 1 ? ( diff --git a/src/components/Toolbar.jsx b/src/components/Toolbar.jsx index c072634..519c6f0 100644 --- a/src/components/Toolbar.jsx +++ b/src/components/Toolbar.jsx @@ -161,7 +161,7 @@ class Toolbar extends React.Component {

{title}

{this.renderToolbarTab(0, narrativesLabel, 'timeline')} - {(isCategories) ? this.renderToolbarTab(1, categoriesLabel, 'category') : null} + {(isCategories) ? this.renderToolbarTab(1, categoriesLabel, 'widgets') : null} {(isTags) ? this.renderToolbarTab(2, tagsLabel, 'filter_list') : null}
state.app.narrative export const getActiveStep = state => state.app.narrativeState.current export const getSelected = state => state.app.selected export const getSites = (state) => { - if (process.env.features.USE_SITES) return state.domain.sites + if (process.env.features.USE_SITES) return state.domain.sites.filter(s => !!(+s.enabled)) return [] } export const getSources = state => {