summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/cycle_analytics/components/stage_issue_component.js.es6
blob: 204f4d1b806173b402f3a67f631cb8602f814120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
((global) => {

  global.cycleAnalytics = global.cycleAnalytics || {};

  global.cycleAnalytics.StageIssueComponent = Vue.extend({
    components: {
      'item-issue-component': gl.cycleAnalytics.ItemIssueComponent,
    },
    props: {
      items: Array,
      stage: Object,
    },
    template: `
      <div>
        <div class="events-description">
          {{ stage.description }}
        </div>
        <ul class="stage-event-list">
          <li class="stage-event-item" v-for="issue in items">
            <item-issue-component :issue="issue"></item-issue-component>
          </li>
        </ul>
      </div>
    `,
  });

})(window.gl || (window.gl = {}));