summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_pipelines_index/stages.js.es6
blob: cb176b3f0c6e04ef9b8528d8252a30b8f4058749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* global Vue, gl */
/* eslint-disable no-param-reassign */

((gl) => {
  gl.VueStages = Vue.extend({
    components: {
      'vue-stage': gl.VueStage,
    },
    props: ['pipeline', 'svgs', 'match'],
    template: `
      <td class="stage-cell">
        <div
          class="stage-container dropdown js-mini-pipeline-graph"
          v-for='stage in pipeline.details.stages'
        >
          <vue-stage :stage='stage' :svgs='svgs' :match='match'></vue-stage>
        </div>
      </td>
    `,
  });
})(window.gl || (window.gl = {}));