Ed Tanous | 9c72979 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 1 | //import i18n from '@/i18n'; |
| 2 | //export const expandRowLabel = i18n.$t('global.table.expandTableRow'); |
| 3 | |
| 4 | export const expandRowLabel = 'expand row label TODO'; |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 5 | |
Dixsie Wolmers | b53e086 | 2020-09-08 14:13:38 -0500 | [diff] [blame] | 6 | const TableRowExpandMixin = { |
Dixsie Wolmers | b53e086 | 2020-09-08 14:13:38 -0500 | [diff] [blame] | 7 | methods: { |
| 8 | toggleRowDetails(row) { |
| 9 | row.toggleDetails(); |
| 10 | row.detailsShowing |
| 11 | ? (this.expandRowLabel = this.$t('global.table.expandTableRow')) |
| 12 | : (this.expandRowLabel = this.$t('global.table.collapseTableRow')); |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 13 | }, |
| 14 | }, |
Dixsie Wolmers | b53e086 | 2020-09-08 14:13:38 -0500 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | export default TableRowExpandMixin; |