Remove bad delete restriction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user