MCPcopy Create free account
hub / github.com/alephdata/aleph / canUpload

Method canUpload

ui/src/components/Document/DocumentManager.jsx:77–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected