mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
To add "Archived on"column to Projects table (archived state) & rename column titles of "archived on" [SCI-10189]
This commit is contained in:
parent
c0e754d184
commit
3f5b0dd30c
2 changed files with 43 additions and 32 deletions
|
@ -114,37 +114,48 @@ export default {
|
|||
objectsToMove: null,
|
||||
reloadingTable: false,
|
||||
folderDeleteDescription: '',
|
||||
exportDescription: '',
|
||||
columnDefs: [
|
||||
{
|
||||
field: 'name',
|
||||
flex: 1,
|
||||
headerName: this.i18n.t('projects.index.card.name'),
|
||||
sortable: true,
|
||||
cellRenderer: this.nameRenderer,
|
||||
},
|
||||
{
|
||||
field: 'code',
|
||||
headerName: this.i18n.t('projects.index.card.id'),
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'created_at',
|
||||
headerName: this.i18n.t('projects.index.card.start_date'),
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'users',
|
||||
headerName: this.i18n.t('projects.index.card.users'),
|
||||
cellRenderer: 'UsersRenderer',
|
||||
sortable: false,
|
||||
minWidth: 210,
|
||||
notSelectable: true
|
||||
},
|
||||
],
|
||||
exportDescription: ''
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
columnDefs() {
|
||||
const columns = [{
|
||||
field: 'name',
|
||||
flex: 1,
|
||||
headerName: this.i18n.t('projects.index.card.name'),
|
||||
sortable: true,
|
||||
cellRenderer: this.nameRenderer,
|
||||
},
|
||||
{
|
||||
field: 'code',
|
||||
headerName: this.i18n.t('projects.index.card.id'),
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'created_at',
|
||||
headerName: this.i18n.t('projects.index.card.start_date'),
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'users',
|
||||
headerName: this.i18n.t('projects.index.card.users'),
|
||||
cellRenderer: 'UsersRenderer',
|
||||
sortable: false,
|
||||
minWidth: 210,
|
||||
notSelectable: true
|
||||
},
|
||||
];
|
||||
|
||||
if (this.currentViewMode === 'archived') {
|
||||
columns.push({
|
||||
field: 'archived_on',
|
||||
headerName: this.i18n.t('projects.index.card.archived_date'),
|
||||
sortable: true
|
||||
});
|
||||
}
|
||||
|
||||
return columns;
|
||||
},
|
||||
viewRenders() {
|
||||
return [
|
||||
{ type: 'table' },
|
||||
|
|
|
@ -570,7 +570,7 @@ en:
|
|||
visibility: "Visible to"
|
||||
users: "Members"
|
||||
name: "Project name"
|
||||
archived_date: "Archived"
|
||||
archived_date: "Archived on"
|
||||
end_of_list_placeholder: 'You’ve reached the end of the list'
|
||||
folder:
|
||||
description: "%{projects_count} projects | %{folders_count} folders"
|
||||
|
@ -1462,7 +1462,7 @@ en:
|
|||
id: "ID"
|
||||
start_date: "Start date"
|
||||
modified_date: "Modified date"
|
||||
archived_date: "Archived date"
|
||||
archived_date: "Archived on"
|
||||
completed_task: "Completed"
|
||||
completed_value: "%{completed}/%{all} tasks"
|
||||
description: "Description"
|
||||
|
@ -1537,7 +1537,7 @@ en:
|
|||
id_html: 'ID'
|
||||
task_name_html: 'Task name'
|
||||
due_date_html: 'Due date'
|
||||
archived_html: 'Archived'
|
||||
archived_html: 'Archived on'
|
||||
age_html: 'Age'
|
||||
results_html: 'Results'
|
||||
status_html: 'Status'
|
||||
|
@ -4100,7 +4100,7 @@ en:
|
|||
updated_on:
|
||||
label: "Modified date"
|
||||
archived_on:
|
||||
label: "Archived date"
|
||||
label: "Archived on"
|
||||
recent_searches_label: "Recent searches"
|
||||
show_btn:
|
||||
one: "Show results"
|
||||
|
|
Loading…
Reference in a new issue