mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 15:57:31 +00:00
feat: metadata owner (#6802)
* feat: metadata owner * add owner column --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local> Co-authored-by: ‘JoinTyang’ <yangtong1009@163.com>
This commit is contained in:
parent
69e40146c4
commit
24b2709653
@ -28,6 +28,7 @@ export const PRIVATE_COLUMN_KEY = {
|
||||
FILE_DETAILS: '_file_details',
|
||||
SHOOTING_TIME: '_shooting_time',
|
||||
FILE_REVIEWER: '_reviewer',
|
||||
OWNER: '_owner',
|
||||
};
|
||||
|
||||
export const PRIVATE_COLUMN_KEYS = [
|
||||
@ -57,6 +58,7 @@ export const PRIVATE_COLUMN_KEYS = [
|
||||
PRIVATE_COLUMN_KEY.FILE_DETAILS,
|
||||
PRIVATE_COLUMN_KEY.SHOOTING_TIME,
|
||||
PRIVATE_COLUMN_KEY.FILE_REVIEWER,
|
||||
PRIVATE_COLUMN_KEY.OWNER,
|
||||
];
|
||||
|
||||
export const EDITABLE_PRIVATE_COLUMN_KEYS = [
|
||||
|
@ -205,6 +205,8 @@ export const getColumnDisplayName = (key, name) => {
|
||||
return gettext('File details');
|
||||
case PRIVATE_COLUMN_KEY.SHOOTING_TIME:
|
||||
return gettext('Shooting time');
|
||||
case PRIVATE_COLUMN_KEY.OWNER:
|
||||
return gettext('Owner');
|
||||
default:
|
||||
return name;
|
||||
}
|
||||
@ -253,6 +255,8 @@ export const getNormalizedColumnType = (key, type) => {
|
||||
return CellType.SINGLE_SELECT;
|
||||
case PRIVATE_COLUMN_KEY.LOCATION:
|
||||
return CellType.GEOLOCATION;
|
||||
case PRIVATE_COLUMN_KEY.OWNER:
|
||||
return CellType.CREATOR;
|
||||
default:
|
||||
return type;
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ def get_sys_columns():
|
||||
METADATA_TABLE.columns.suffix.to_dict(),
|
||||
METADATA_TABLE.columns.file_details.to_dict(),
|
||||
METADATA_TABLE.columns.description.to_dict(),
|
||||
METADATA_TABLE.columns.owner.to_dict(),
|
||||
]
|
||||
|
||||
return columns
|
||||
|
Loading…
Reference in New Issue
Block a user