1const TableRowExpandMixin = {
2  data() {
3    return {
4      expandRowLabel: this.$t('global.table.expandTableRow')
5    };
6  },
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'));
13    }
14  }
15};
16
17export default TableRowExpandMixin;
18