Remove delete for _internal db

pull/1029/head
Andrew Watkins 2017-03-23 16:21:19 -07:00
parent 003961e016
commit 7265f0f503
1 changed files with 6 additions and 3 deletions

View File

@ -157,9 +157,12 @@ const Header = ({
const buttons = (
<div className="text-right">
<button className="btn btn-xs btn-danger" onClick={() => onStartDelete(database)}>
Delete
</button>
{
database.name === '_internal' ? null :
<button className="btn btn-xs btn-danger" onClick={() => onStartDelete(database)}>
Delete
</button>
}
<button className="btn btn-xs btn-primary" disabled={isAddRPDisabled} onClick={() => onAddRetentionPolicy(database)}>
Add retention policy
</button>