diff --git a/ui/src/admin/components/DatabaseRow.js b/ui/src/admin/components/DatabaseRow.js index caa29af91..5b0f248eb 100644 --- a/ui/src/admin/components/DatabaseRow.js +++ b/ui/src/admin/components/DatabaseRow.js @@ -34,6 +34,7 @@ class DatabaseRow extends Component { retentionPolicy, database, onDelete, + isDeletable, isRFDisplayed, } = this.props const {isEditing, isDeleting} = this.state @@ -107,26 +108,20 @@ class DatabaseRow extends Component { { isDeleting ? - onDelete(database, retentionPolicy)} onCancel={this.handleEndDelete} /> : - this.renderDeleteButton() + onDelete(database, retentionPolicy)} + onCancel={this.handleEndDelete} /> : + } ) } - renderDeleteButton() { - if (!this.props.isDeletable) { - return - } - - return ( - - ) - } - handleClickOutside() { const {database, retentionPolicy, onRemove} = this.props if (retentionPolicy.isNew) {