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

get_ref.js « mixins « repository « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3247938f99956f79926db822c107478322398569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import refQuery from '../queries/ref.query.graphql';

export default {
  apollo: {
    ref: {
      query: refQuery,
      manual: true,
      result({ data, loading }) {
        if (data && !loading) {
          this.ref = data.ref;
          this.escapedRef = data.escapedRef;
        }
      },
    },
  },
  data() {
    return {
      ref: '',
      escapedRef: '',
    };
  },
};