BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6efe1531
Commit
6efe1531
authored
Nov 18, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete StageButton component
parent
9219d1b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
36 deletions
+5
-36
stage_button.js.es6
...avascripts/cycle_analytics/components/stage_button.js.es6
+0
-26
cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+0
-1
show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+5
-9
No files found.
app/assets/javascripts/cycle_analytics/components/stage_button.js.es6
deleted
100644 → 0
View file @
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 = {}));
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
View file @
6efe1531
...
...
@@ -29,7 +29,6 @@ $(() => {
},
},
components
:
{
'stage-button'
:
gl
.
cycleAnalytics
.
StageButton
,
'stage-issue-component'
:
gl
.
cycleAnalytics
.
StageIssueComponent
,
'stage-plan-component'
:
gl
.
cycleAnalytics
.
StagePlanComponent
,
'stage-code-component'
:
gl
.
cycleAnalytics
.
StageCodeComponent
,
...
...
app/views/projects/cycle_analytics/show.html.haml
View file @
6efe1531
...
...
@@ -69,15 +69,11 @@
.stage-panel-body
%nav
.stage-nav
%ul
%stage-button
{
"inline-template"
=>
true
,
"v-for"
=>
"stage in state.stages"
,
":stage"
=>
"stage"
,
":on-stage-click"
=>
"selectStage"
}
%li
.stage-nav-item
{
":class"
=>
"classObject"
,
"@click"
=>
"onClick(stage)"
}
.stage-name
{{ stage.title }}
.stage-median
{{ stage.value }}
%li
.stage-nav-item
{
':class'
=>
'
{
active:
stage
.
active
}
', '
@click
' => '
selectStage
(
stage
)
'
,
"v-for"
=>
"stage in state.stages"
}
.stage-name
{{ stage.title }}
.stage-median
{{ stage.value }}
.section.stage-events
%template
{
"v-if"
=>
"isLoadingStage"
}
=
icon
(
"spinner spin"
,
"v-show"
=>
"isLoadingStage"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment