diff --git a/app/javascript/vue/my_modules/list.vue b/app/javascript/vue/my_modules/list.vue index 1fa5cee97..6724f037a 100644 --- a/app/javascript/vue/my_modules/list.vue +++ b/app/javascript/vue/my_modules/list.vue @@ -57,7 +57,7 @@ import DueDateRenderer from './renderers/due_date.vue'; import DesignatedUsers from './renderers/designated_users.vue'; import TagsModal from './modals/tags.vue'; import TagsRenderer from './renderers/tags.vue'; -import CommentsRenderer from './renderers/comments.vue'; +import CommentsRenderer from '../shared/datatable/renderers/comments.vue'; import NewModal from './modals/new.vue'; import EditModal from './modals/edit.vue'; import MoveModal from './modals/move.vue'; diff --git a/app/javascript/vue/projects/list.vue b/app/javascript/vue/projects/list.vue index f21b409fe..8d97f44f0 100644 --- a/app/javascript/vue/projects/list.vue +++ b/app/javascript/vue/projects/list.vue @@ -67,6 +67,7 @@ import axios from '../../packs/custom_axios.js'; import DataTable from '../shared/datatable/table.vue'; import UsersRenderer from './renderers/users.vue'; +import CommentsRenderer from '../shared/datatable/renderers/comments.vue'; import ProjectCard from './card.vue'; import ConfirmationModal from '../shared/confirmation_modal.vue'; import EditProjectModal from './modals/edit.vue'; @@ -136,6 +137,11 @@ export default { headerName: this.i18n.t('projects.index.card.start_date'), sortable: true }, + { + field: 'updated_at', + headerName: this.i18n.t('projects.index.card.updated_at'), + sortable: true + }, { field: 'users', headerName: this.i18n.t('projects.index.card.users'), @@ -143,6 +149,13 @@ export default { sortable: false, minWidth: 210, notSelectable: true + }, + { + field: 'comments', + headerName: this.i18n.t('projects.index.card.comments'), + sortable: false, + cellRenderer: CommentsRenderer, + notSelectable: true }]; if (this.currentViewMode === 'archived') { diff --git a/app/javascript/vue/my_modules/renderers/comments.vue b/app/javascript/vue/shared/datatable/renderers/comments.vue similarity index 66% rename from app/javascript/vue/my_modules/renderers/comments.vue rename to app/javascript/vue/shared/datatable/renderers/comments.vue index dea717477..17f0145cb 100644 --- a/app/javascript/vue/my_modules/renderers/comments.vue +++ b/app/javascript/vue/shared/datatable/renderers/comments.vue @@ -1,9 +1,9 @@