diff --git a/resources/jscomposition/cases/casesMain/config/columns.js b/resources/jscomposition/cases/casesMain/config/columns.js index 6d6bf05587..bbf7a20001 100644 --- a/resources/jscomposition/cases/casesMain/config/columns.js +++ b/resources/jscomposition/cases/casesMain/config/columns.js @@ -4,6 +4,7 @@ import { ParticipantsCell, StatusCell, LinkCell, + TruncatedColumn, } from "../../../system/index"; import { formatDate } from "../../../utils"; @@ -67,11 +68,8 @@ export const processColumn = () => ({ resizable: true, width: 200, cellRenderer: () => ({ - component: TruncatedOptionsCell, + component: TruncatedColumn, params: { - click: (option, row, column, columns) => { - window.document.location = `/tasks/${option.id}/edit`; - }, formatterOptions: (option, row, column, columns) => option.name, }, }), diff --git a/resources/jscomposition/system/table/cell/TruncatedColumn.vue b/resources/jscomposition/system/table/cell/TruncatedColumn.vue new file mode 100644 index 0000000000..4983db1129 --- /dev/null +++ b/resources/jscomposition/system/table/cell/TruncatedColumn.vue @@ -0,0 +1,107 @@ + + diff --git a/resources/jscomposition/system/table/cell/index.js b/resources/jscomposition/system/table/cell/index.js index bcaea11d31..28db36a95f 100644 --- a/resources/jscomposition/system/table/cell/index.js +++ b/resources/jscomposition/system/table/cell/index.js @@ -5,6 +5,7 @@ import StatusCell from "./StatusCell.vue"; import CaseTitleCell from "./CaseTitleCell.vue"; import LinkCell from "./LinkCell.vue"; import CollapseFormCell from "./CollapseFormCell.vue"; +import TruncatedColumn from "./TruncatedColumn.vue"; export { ParticipantsCell, @@ -14,4 +15,5 @@ export { LinkCell, CollapseFormCell, ParticipantCell, + TruncatedColumn, };