diff --git a/client/src/js/newsboard/components/ScanNews.jsx b/client/src/js/newsboard/components/ScanNews.jsx index 890c782e..861bf4d1 100644 --- a/client/src/js/newsboard/components/ScanNews.jsx +++ b/client/src/js/newsboard/components/ScanNews.jsx @@ -25,6 +25,7 @@ export class ScanNews extends Component { componentWillMount() { const mainHeaderStrings = Locale.applicationStrings().messages.mainHeaderStrings; this.props.dispatch(setCurrentHeaderTab(mainHeaderStrings.newsBoard)); + this.props.dispatch(filterTabSwitch("web")); } displayFilters() { diff --git a/client/src/js/newsboard/filter/DisplayFilters.jsx b/client/src/js/newsboard/filter/DisplayFilters.jsx index 433d9e3c..fa12dbd3 100644 --- a/client/src/js/newsboard/filter/DisplayFilters.jsx +++ b/client/src/js/newsboard/filter/DisplayFilters.jsx @@ -43,6 +43,15 @@ export class DisplayFilters extends Component { selectedSources = { "web": new Set(web), "facebook": new Set(facebook), "twitter": new Set(twitter) }; } + selectAllSources() { + selectedSources = { "web": new Set(), "facebook": new Set(), "twitter": new Set() }; + Object.entries(this.props.sources).map(([key, value]) => { + value.forEach(elem => { + selectedSources[key].add(elem.url); + }); + }); + } + _renderSources(sourceType, searchKey) { const configuredSourceDOM = (source) => (