diff options
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.js | 19 |
1 files changed, 14 insertions, 5 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 d6cb3b9..195c385 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/files-app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/files-app.js @@ -345,11 +345,6 @@ function FilesPanel({ onChange=${uploadFile} /> </label> `} - ${canCreateDir && html` - <button class="tb-btn" onClick=${makeDirectory}> - <${Icon} name="folder-plus" /> ${t('group.mkdir')} - </button> - `} </div> <div class="breadcrumbs"> @@ -406,6 +401,20 @@ function FilesPanel({ </tr> </thead> <tbody> + ${currentPath && html` + <tr class="file-row dir-row" key="__parent__" onClick=${() => { + const parts = currentPath.split('/'); + setCurrentPath(parts.slice(0, -1).join('/')); + }}> + <td class="sel-cell"></td> + <td>${'\u{1F4C1}'}</td> + <td>..</td> + <td class="file-size"></td> + ${showGroup && html`<td></td>`} + <td class="td-type"></td> + <td class="td-date"></td> + </tr> + `} ${subdirs.map(d => { const full = currentPath ? currentPath + '/' + d : d; const inside = entriesUnder(entries, full); |