summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/files-app.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/files-app.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/files-app.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/files-app.js b/packages/meshbay-hub/src/meshbay_hub/static/files-app.js
index 882a8fa..638bc76 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/files-app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/files-app.js
@@ -274,14 +274,8 @@ function FilesPanel({
: subdirs.filter(d => rootState.get(d) && rootState.get(d).available === false);
const currentRootName = currentPath ? currentPath.split('/')[0] : '';
const currentRoot = currentRootName ? rootState.get(currentRootName) : null;
- // `upload` is the same answer under the name a node speaking MNP 1.0 uses;
- // reading only `writable` there means the Upload button disappears on every
- // node that has not been upgraded yet, which is most of them on the day the
- // page ships.
- const currentRootWritable = currentRoot
- ? (currentRoot.writable !== undefined ? currentRoot.writable
- : Boolean(currentRoot.upload))
- : false;
+ const currentRootWritable = currentRoot ? Boolean(currentRoot.writable)
+ : false;
// A member cannot create a folder at the top of a group: that level is the
// set of roots, which is the operator's configuration and not a directory on
// anyone's disk. The node refuses it, so offering it would only produce an