1import i18n from '@/i18n'; 2export const expandRowLabel = i18n.global.t('global.table.expandTableRow'); 3 4const TableRowExpandMixin = { 5 methods: { 6 toggleRowDetails(row) { 7 row.toggleDetails(); 8 row.detailsShowing 9 ? (this.expandRowLabel = i18n.global.t('global.table.expandTableRow')) 10 : (this.expandRowLabel = i18n.global.t( 11 'global.table.collapseTableRow', 12 )); 13 }, 14 }, 15}; 16 17export default TableRowExpandMixin; 18