Commit 6efe1531 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Delete StageButton component

parent 9219d1b3
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics.StageButton = Vue.extend({
props: {
stage: Object,
onStageClick: Function
},
computed: {
classObject() {
return {
'active': this.stage.active
}
}
},
methods: {
onClick(stage) {
this.onStageClick(stage);
}
}
});
})(window.gl || (window.gl = {}));
...@@ -29,7 +29,6 @@ $(() => { ...@@ -29,7 +29,6 @@ $(() => {
}, },
}, },
components: { components: {
'stage-button': gl.cycleAnalytics.StageButton,
'stage-issue-component': gl.cycleAnalytics.StageIssueComponent, 'stage-issue-component': gl.cycleAnalytics.StageIssueComponent,
'stage-plan-component': gl.cycleAnalytics.StagePlanComponent, 'stage-plan-component': gl.cycleAnalytics.StagePlanComponent,
'stage-code-component': gl.cycleAnalytics.StageCodeComponent, 'stage-code-component': gl.cycleAnalytics.StageCodeComponent,
......
...@@ -69,15 +69,11 @@ ...@@ -69,15 +69,11 @@
.stage-panel-body .stage-panel-body
%nav.stage-nav %nav.stage-nav
%ul %ul
%stage-button{ "inline-template" => true, %li.stage-nav-item{ ':class' => '{active: stage.active}', '@click' => 'selectStage(stage)', "v-for" => "stage in state.stages" }
"v-for" => "stage in state.stages", .stage-name
":stage" => "stage", {{ stage.title }}
":on-stage-click" => "selectStage" } .stage-median
%li.stage-nav-item{ ":class" => "classObject", "@click" => "onClick(stage)" } {{ stage.value }}
.stage-name
{{ stage.title }}
.stage-median
{{ stage.value }}
.section.stage-events .section.stage-events
%template{ "v-if" => "isLoadingStage" } %template{ "v-if" => "isLoadingStage" }
= icon("spinner spin", "v-show" => "isLoadingStage") = icon("spinner spin", "v-show" => "isLoadingStage")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment