|
@@ -116,6 +116,7 @@ var Record = React.createClass({
|
|
render: function() {
|
|
render: function() {
|
|
var record = this.props.record;
|
|
var record = this.props.record;
|
|
var className = this.state.saving ? 'saving' : '';
|
|
var className = this.state.saving ? 'saving' : '';
|
|
|
|
+ var editDisabled = ['MX', 'SRV'].indexOf(record.type.val()) >= 0;
|
|
if(this.state.state === 'edit') {
|
|
if(this.state.state === 'edit') {
|
|
return (
|
|
return (
|
|
<tr className={className}>
|
|
<tr className={className}>
|
|
@@ -154,7 +155,7 @@ var Record = React.createClass({
|
|
<td className="value">{record.display_content.val()}</td>
|
|
<td className="value">{record.display_content.val()}</td>
|
|
<td><CloudActive record={record} onClick={this.toggleProxy} /></td>
|
|
<td><CloudActive record={record} onClick={this.toggleProxy} /></td>
|
|
<td className="actions">
|
|
<td className="actions">
|
|
- <button className="btn btn-primary" onClick={this.setEditing}>Edit</button>
|
|
|
|
|
|
+ <button className="btn btn-primary" disabled={editDisabled} onClick={this.setEditing}>Edit</button>
|
|
<span> </span>
|
|
<span> </span>
|
|
<button className="btn btn-danger" onClick={this.setDeleting}>Delete</button>
|
|
<button className="btn btn-danger" onClick={this.setDeleting}>Delete</button>
|
|
</td>
|
|
</td>
|