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,11 +69,7 @@ ...@@ -69,11 +69,7 @@
.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" => "stage",
":on-stage-click" => "selectStage" }
%li.stage-nav-item{ ":class" => "classObject", "@click" => "onClick(stage)" }
.stage-name .stage-name
{{ stage.title }} {{ stage.title }}
.stage-median .stage-median
......
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