aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-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