()
| 75 | } |
| 76 | |
| 77 | canUpload() { |
| 78 | const { collection, document } = this.props; |
| 79 | const parentFolder = |
| 80 | document == null ? true : document.schema.isA('Folder'); |
| 81 | |
| 82 | if (!parentFolder || !collection.writeable) { |
| 83 | return false; |
| 84 | } |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | updateQuery(newQuery) { |
| 89 | const { navigate, location } = this.props; |