mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Make fields of files either readonly or hide them (#4053)
* make fields of file readonly to hinder confusion * hide upload fields because duplication of information
This commit is contained in:
@@ -71,48 +71,64 @@ fields:
|
||||
|
||||
- field: type
|
||||
display: mime-type
|
||||
readonly: true
|
||||
|
||||
- field: filesize
|
||||
display: filesize
|
||||
readonly: true
|
||||
|
||||
- field: modified_by
|
||||
interface: user
|
||||
special: user-updated
|
||||
width: half
|
||||
display: user
|
||||
readonly: true
|
||||
|
||||
- field: modified_on
|
||||
interface: datetime
|
||||
special: date-updated
|
||||
width: half
|
||||
display: datetime
|
||||
readonly: true
|
||||
|
||||
- field: created_on
|
||||
display: datetime
|
||||
readonly: true
|
||||
|
||||
- field: created_by
|
||||
display: user
|
||||
readonly: true
|
||||
|
||||
- field: embed
|
||||
width: half
|
||||
hidden: true
|
||||
|
||||
- field: uploaded_by
|
||||
display: user
|
||||
width: half
|
||||
hidden: true
|
||||
|
||||
- field: folder
|
||||
width: half
|
||||
readonly: true
|
||||
|
||||
- field: width
|
||||
width: half
|
||||
readonly: true
|
||||
|
||||
- field: uploaded_on
|
||||
display: datetime
|
||||
width: half
|
||||
hidden: true
|
||||
|
||||
- field: height
|
||||
width: half
|
||||
readonly: true
|
||||
|
||||
- field: charset
|
||||
width: half
|
||||
readonly: true
|
||||
|
||||
- field: duration
|
||||
width: half
|
||||
readonly: true
|
||||
|
||||
Reference in New Issue
Block a user