Remove bad delete restriction

This commit is contained in:
Tom Moor
2018-02-12 20:02:27 -08:00
parent 8ebf748cf6
commit f211cb1fbf
4 changed files with 2 additions and 26 deletions

View File

@@ -89,17 +89,6 @@ class Document extends BaseModel {
return !this.isEmpty && !this.isSaving;
}
@computed
get allowDelete(): boolean {
const collection = this.collection;
return (
collection &&
collection.type === 'atlas' &&
collection.documents &&
collection.documents.length > 1
);
}
@computed
get parentDocumentId(): ?string {
return this.pathToDocument.length > 1