Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
36 deletions
+5
-36
app/assets/javascripts/cycle_analytics/components/stage_button.js.es6
...avascripts/cycle_analytics/components/stage_button.js.es6
+0
-26
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+0
-1
app/views/projects/cycle_analytics/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