14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
|
import { mapActions } from 'vuex';
|
||
|
|
||
|
export default {
|
||
|
methods: {
|
||
|
...mapActions(['toggleDiscussion']),
|
||
|
clickedToggle(discussion) {
|
||
|
this.toggleDiscussion({ discussionId: discussion.id });
|
||
|
},
|
||
|
toggleText(discussion, index) {
|
||
|
return index + 1;
|
||
|
},
|
||
|
},
|
||
|
};
|