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