summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/cycle_analytics/components/stage_staging_component.js.es6
blob: 1f983ecbab93ce2d4b694b1e77ed23a2401ed627 (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
28
((global) => {

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

  global.cycleAnalytics.StageStagingComponent = Vue.extend({
    template: '#stage-staging-component',
    components: {
      'item-build-component': gl.cycleAnalytics.ItemBuildComponent,
    },
    props: {
      items: Array,
      stage: Object,
    },
    template: `
      <div>
        <div class="events-description">
          {{ stage.description }}
        </div>
        <ul>
          <li v-for="build in items">
            <item-build-component :build="build"></item-build-component>
          </li>
        </ul>
      </div>
    `,
  });

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