Welcome to mirror list, hosted at ThFree Co, Russian Federation.

image_diff.js « mixins « diffs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 93fb5afbce12b2e09d020c0fbb59f7e77874cc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// eslint-disable-next-line no-restricted-imports
import { mapActions } from 'vuex';

export default {
  methods: {
    ...mapActions(['toggleDiscussion']),
    clickedToggle(discussion) {
      this.toggleDiscussion({ discussionId: discussion.id });
    },
    toggleText(discussion, index) {
      return index + 1;
    },
  },
};