Skip to content

Commit

Permalink
chmod view simplified, changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
alcalbg committed Dec 24, 2024
1 parent f6ef36e commit 52859b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Upcoming...
* Added a column to display chmod permissions (see #522)

## 7.12.0 - 2024-12-13
* Dependency updates (see #506)
Expand Down
6 changes: 3 additions & 3 deletions frontend/views/Browser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</a>
</b-table-column>

<b-table-column v-if="can(['write', 'chmod'])" :label="lang('Permissions')" field="data.permissions" sortable width="170">
<b-table-column v-if="can(['write', 'chmod'])" :label="lang('Permissions')" field="data.permissions" sortable width="130">
<span @click="togglePermissionsView" :title="showSymbolic ? lang('Hide symbolic format') : lang('Show symbolic format')" style="font-family: monospace;cursor: pointer;">
{{ formatPermissions(props.row.permissions, props.row.type) }}
</span>
Expand Down Expand Up @@ -262,11 +262,11 @@ export default {
this.showSymbolic = !this.showSymbolic
},
formatPermissions(permissions, type) {
if (permissions === -1) return this.lang('N/A')
if (permissions === -1) return
const numeric = permissions.toString()
if (this.showSymbolic) {
const symbolic = this.convertToSymbolic(permissions, type)
return `${numeric} [${symbolic}]`
return `[${symbolic}]`
}
return numeric
},
Expand Down

0 comments on commit 52859b6

Please sign in to comment.