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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4731eba4
Commit
4731eba4
authored
Oct 09, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Action Icons
parent
d01d509b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
25 deletions
+20
-25
app/assets/javascripts/pipelines/components/graph/action_component.vue
...vascripts/pipelines/components/graph/action_component.vue
+3
-9
app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue
.../pipelines/components/graph/dropdown_action_component.vue
+1
-9
app/assets/javascripts/vue_shared/components/icon.vue
app/assets/javascripts/vue_shared/components/icon.vue
+1
-1
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+9
-0
lib/gitlab/ci/status/build/cancelable.rb
lib/gitlab/ci/status/build/cancelable.rb
+1
-1
lib/gitlab/ci/status/build/failed_allowed.rb
lib/gitlab/ci/status/build/failed_allowed.rb
+1
-1
lib/gitlab/ci/status/build/play.rb
lib/gitlab/ci/status/build/play.rb
+1
-1
lib/gitlab/ci/status/build/retryable.rb
lib/gitlab/ci/status/build/retryable.rb
+1
-1
lib/gitlab/ci/status/build/stop.rb
lib/gitlab/ci/status/build/stop.rb
+1
-1
spec/javascripts/pipelines/graph/dropdown_action_component_spec.js
...scripts/pipelines/graph/dropdown_action_component_spec.js
+1
-1
No files found.
app/assets/javascripts/pipelines/components/graph/action_component.vue
View file @
4731eba4
<
script
>
import
getActionIcon
from
'
../../../vue_shared/ci_action_icons
'
;
import
tooltip
from
'
../../../vue_shared/directives/tooltip
'
;
import
icon
from
'
../../../vue_shared/components/icon.vue
'
;
...
...
@@ -39,12 +38,8 @@
},
computed
:
{
actionIconSvg
()
{
return
getActionIcon
(
this
.
actionIcon
);
},
cssClass
()
{
return
`js-
${
gl
.
text
.
dasherize
(
this
.
actionIcon
)}
`
;
return
`
${
gl
.
text
.
dasherize
(
this
.
actionIcon
)}
js-
${
gl
.
text
.
dasherize
(
this
.
actionIcon
)}
`
;
},
},
};
...
...
@@ -59,7 +54,6 @@
:class=
"cssClass"
data-container=
"body"
>
<icon
name=
"stop"
size=
"16"
/>
:name=
"actionIcon"
/>
</a>
</
template
>
app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue
View file @
4731eba4
...
...
@@ -37,13 +37,6 @@
directives
:
{
tooltip
,
},
computed
:
{
actionIconSvg
()
{
alert
(
'
LA
'
);
return
getActionIcon
(
this
.
actionIcon
);
},
},
};
</
script
>
<
template
>
...
...
@@ -56,8 +49,7 @@
class=
"ci-action-icon-wrapper js-ci-status-icon"
data-container=
"body"
aria-label=
"Job's action"
>
{{
actionIcon
}}
<icon
name=
"retry
"
/>
:name=
"actionIcon
"
/>
</a>
</
template
>
app/assets/javascripts/vue_shared/components/icon.vue
View file @
4731eba4
...
...
@@ -40,7 +40,7 @@
},
fullCssClass
()
{
let
classString
=
''
||
this
.
cssClass
;
//
if (this.size) classString += `s${this.size}`
if
(
this
.
size
)
classString
+=
`s
${
this
.
size
}
`
return
classString
;
},
},
...
...
app/assets/stylesheets/pages/pipelines.scss
View file @
4731eba4
...
...
@@ -734,6 +734,15 @@ button.mini-pipeline-graph-dropdown-toggle {
&
:focus
svg
{
fill
:
$gl-text-color
;
}
&
.icon-action-retry
,
&
.icon-action-play
{
svg
{
width
:
calc
(
$ci-action-icon-size-6
);
height
:
calc
(
$ci-action-icon-size-6
);
left
:
8px
;
}
}
}
// link to the build
...
...
lib/gitlab/ci/status/build/cancelable.rb
View file @
4731eba4
...
...
@@ -8,7 +8,7 @@ module Gitlab
end
def
action_icon
'
icon_action_
cancel'
'cancel'
end
def
action_path
...
...
lib/gitlab/ci/status/build/failed_allowed.rb
View file @
4731eba4
...
...
@@ -8,7 +8,7 @@ module Gitlab
end
def
icon
'
icon_status_
warning'
'warning'
end
def
group
...
...
lib/gitlab/ci/status/build/play.rb
View file @
4731eba4
...
...
@@ -12,7 +12,7 @@ module Gitlab
end
def
action_icon
'
icon_action_
play'
'play'
end
def
action_title
...
...
lib/gitlab/ci/status/build/retryable.rb
View file @
4731eba4
...
...
@@ -8,7 +8,7 @@ module Gitlab
end
def
action_icon
'
icon_action_
retry'
'retry'
end
def
action_title
...
...
lib/gitlab/ci/status/build/stop.rb
View file @
4731eba4
...
...
@@ -12,7 +12,7 @@ module Gitlab
end
def
action_icon
'
icon_action_
stop'
'stop'
end
def
action_title
...
...
spec/javascripts/pipelines/graph/dropdown_action_component_spec.js
View file @
4731eba4
...
...
@@ -11,7 +11,7 @@ describe('action component', () => {
tooltipText
:
'
bar
'
,
link
:
'
foo
'
,
actionMethod
:
'
post
'
,
actionIcon
:
'
icon_action_
cancel
'
,
actionIcon
:
'
cancel
'
,
},
}).
$mount
();
...
...
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