Merge pull request #7109 from G-Chubinidze/gc_SCI_10189

To add "Archived on"column to Projects table (archived state) & rename column titles of "archived on" [SCI-10189]
This commit is contained in:
G-Chubinidze 2024-02-20 13:51:31 +04:00 committed by GitHub
commit 35087f202e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 33 deletions

View file

@ -114,38 +114,47 @@ export default {
objectsToMove: null, objectsToMove: null,
reloadingTable: false, reloadingTable: false,
folderDeleteDescription: '', folderDeleteDescription: '',
exportDescription: '', 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,
minWidth: 130
},
{
field: 'users',
headerName: this.i18n.t('projects.index.card.users'),
cellRenderer: 'UsersRenderer',
sortable: false,
minWidth: 210,
notSelectable: true
}
]
}; };
}, },
computed: { 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() { viewRenders() {
return [ return [
{ type: 'table' }, { type: 'table' },

View file

@ -570,7 +570,7 @@ en:
visibility: "Visible to" visibility: "Visible to"
users: "Members" users: "Members"
name: "Project name" name: "Project name"
archived_date: "Archived" archived_date: "Archived on"
end_of_list_placeholder: 'Youve reached the end of the list' end_of_list_placeholder: 'Youve reached the end of the list'
folder: folder:
description: "%{projects_count} projects | %{folders_count} folders" description: "%{projects_count} projects | %{folders_count} folders"
@ -1462,7 +1462,7 @@ en:
id: "ID" id: "ID"
start_date: "Start date" start_date: "Start date"
modified_date: "Modified date" modified_date: "Modified date"
archived_date: "Archived date" archived_date: "Archived on"
completed_task: "Completed" completed_task: "Completed"
completed_value: "%{completed}/%{all} tasks" completed_value: "%{completed}/%{all} tasks"
description: "Description" description: "Description"
@ -1537,7 +1537,7 @@ en:
id_html: 'ID' id_html: 'ID'
task_name_html: 'Task name' task_name_html: 'Task name'
due_date_html: 'Due date' due_date_html: 'Due date'
archived_html: 'Archived' archived_html: 'Archived on'
age_html: 'Age' age_html: 'Age'
results_html: 'Results' results_html: 'Results'
status_html: 'Status' status_html: 'Status'
@ -4100,7 +4100,7 @@ en:
updated_on: updated_on:
label: "Modified date" label: "Modified date"
archived_on: archived_on:
label: "Archived date" label: "Archived on"
recent_searches_label: "Recent searches" recent_searches_label: "Recent searches"
show_btn: show_btn:
one: "Show results" one: "Show results"