aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/RightPanel.react.js
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-22 14:30:54 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-22 14:30:54 +0100
commit3d199ce8955c035a5a1bc4569058e2f84ef9cfe0 (patch)
treee8bb7f02b6b4bae283807577123b851e66eb4bc4 /src/web/js/components/RightPanel.react.js
parentfix... (diff)
downloadnewspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.tar.gz
newspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.tar.bz2
newspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.zip
fixes
Diffstat (limited to 'src/web/js/components/RightPanel.react.js')
-rw-r--r--src/web/js/components/RightPanel.react.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js
index 275bcfb3..f765607a 100644
--- a/src/web/js/components/RightPanel.react.js
+++ b/src/web/js/components/RightPanel.react.js
@@ -35,6 +35,7 @@ var PanelMixin = {
</Button>);
}
btn_grp = (<ButtonGroup bsSize="small">
+ {this.getExtraButton()}
{edit_button}
{rem_button}
</ButtonGroup>);
@@ -175,13 +176,7 @@ var Article = React.createClass({
<div id="article-content" dangerouslySetInnerHTML={
{__html: this.props.obj.content}} />
</div>);
- },
- reloadParsed: function() {
- if(this.props.obj.readability_available
- && !this.props.obj.readability_parsed) {
- RightPanelActions.loadArticle(this.props.obj.id, true, true);
- }
- },
+ }
});
var Feed = React.createClass({
@@ -198,6 +193,7 @@ var Feed = React.createClass({
{'title': 'Category', 'type': 'ignore', 'key': 'category_id'},
],
getTitle: function() {return this.props.obj.title;},
+ getExtraButton: function() {return null;},
getFilterRow: function(i, filter) {
return (<dd key={'d' + i + '-' + this.props.obj.id}
className="input-group filter-row">
@@ -357,6 +353,7 @@ var Category = React.createClass({
if(this.props.obj.id != 0) {return true;}
else {return false;}
},
+ getExtraButton: function () {return null;},
isRemovable: function() {return this.isEditable();},
obj_type: 'category',
fields: [{'title': 'Category name', 'type': 'string', 'key': 'name'}],
bgstack15