mirror of
https://github.com/filegator/filegator.git
synced 2025-08-07 01:26:29 +02:00
chmod view simplified, changelog updated
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## Upcoming...
|
## Upcoming...
|
||||||
|
* Added a column to display chmod permissions (see #522)
|
||||||
|
|
||||||
## 7.12.0 - 2024-12-13
|
## 7.12.0 - 2024-12-13
|
||||||
* Dependency updates (see #506)
|
* Dependency updates (see #506)
|
||||||
|
@@ -100,7 +100,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</b-table-column>
|
</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;">
|
<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) }}
|
{{ formatPermissions(props.row.permissions, props.row.type) }}
|
||||||
</span>
|
</span>
|
||||||
@@ -262,11 +262,11 @@ export default {
|
|||||||
this.showSymbolic = !this.showSymbolic
|
this.showSymbolic = !this.showSymbolic
|
||||||
},
|
},
|
||||||
formatPermissions(permissions, type) {
|
formatPermissions(permissions, type) {
|
||||||
if (permissions === -1) return this.lang('N/A')
|
if (permissions === -1) return
|
||||||
const numeric = permissions.toString()
|
const numeric = permissions.toString()
|
||||||
if (this.showSymbolic) {
|
if (this.showSymbolic) {
|
||||||
const symbolic = this.convertToSymbolic(permissions, type)
|
const symbolic = this.convertToSymbolic(permissions, type)
|
||||||
return `${numeric} [${symbolic}]`
|
return `[${symbolic}]`
|
||||||
}
|
}
|
||||||
return numeric
|
return numeric
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user