aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 22:16:07 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 22:16:07 +0100
commit83516a6449b863a6f9572f93c1e1a285a208ef2d (patch)
treeb40b40eabc93cfee2b43fc59bf4624e484f07394
parentusing api and repairing feed page (diff)
downloadnewspipe-83516a6449b863a6f9572f93c1e1a285a208ef2d.tar.gz
newspipe-83516a6449b863a6f9572f93c1e1a285a208ef2d.tar.bz2
newspipe-83516a6449b863a6f9572f93c1e1a285a208ef2d.zip
submit button on bottom
-rw-r--r--src/web/js/components/RightPanel.react.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js
index 9e341e5c..d2935253 100644
--- a/src/web/js/components/RightPanel.react.js
+++ b/src/web/js/components/RightPanel.react.js
@@ -86,12 +86,6 @@ var PanelMixin = {
}
}.bind(this));
} else {
- items.push(<dd key={this.getKey('dd', 'submit')}>
- <button className="btn btn-default"
- onClick={this.saveObj}>
- Submit
- </button>
- </dd>);
this.fields.filter(function(field) {
return field.type != 'ignore';
}).map(function(field) {
@@ -113,6 +107,13 @@ var PanelMixin = {
}
return (<dl className="dl-horizontal">{items}</dl>);
},
+ getSubmit: function() {
+ return (<dd key={this.getKey('dd', 'submit')}>
+ <button className="btn btn-default" onClick={this.saveObj}>
+ Submit
+ </button>
+ </dd>);
+ },
render: function() {
return (<div className="panel panel-default">
{this.getHeader()}
@@ -316,6 +317,7 @@ var Feed = React.createClass({
{this.getCategorySelect()}
{this.getCore()}
{this.getFilterRows()}
+ {this.state.edit_mode?this.getSubmit():null}
</div>
);
},
@@ -351,6 +353,7 @@ var Category = React.createClass({
getBody: function() {
return (<div className="panel-body">
{this.getCore()}
+ {this.state.edit_mode?this.getSubmit():null}
</div>);
},
});
bgstack15