diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-18 09:19:29 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-30 10:30:15 +0100 |
commit | 667cd6257e21c4f468bf20575c70c6e159ff42c8 (patch) | |
tree | 9d7ee804188b4e0c5987457f25be179047908d59 /app | |
parent | 8e828bef989bf6d2af3634630efe87a5cda86b6b (diff) | |
download | gitlab-ce-667cd6257e21c4f468bf20575c70c6e159ff42c8.tar.gz |
Improved Var Caching, Line Setup, Specs
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/pipelines/components/graph/action_component.vue | 6 | ||||
-rw-r--r-- | app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/action_component.vue b/app/assets/javascripts/pipelines/components/graph/action_component.vue index 2ef98d1d418..0ca86d09dbd 100644 --- a/app/assets/javascripts/pipelines/components/graph/action_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/action_component.vue @@ -39,7 +39,8 @@ computed: { cssClass() { - return `${gl.text.dasherize(this.actionIcon)} js-icon-${gl.text.dasherize(this.actionIcon)}`; + const actionIconDash = gl.text.dasherize(this.actionIcon) + return `${actionIconDash} js-icon-${actionIconDash}`; }, }, }; @@ -53,7 +54,6 @@ class="ci-action-icon-container ci-action-icon-wrapper" :class="cssClass" data-container="body"> - <icon - :name="actionIcon"/> + <icon :name="actionIcon"/> </a> </template> diff --git a/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue b/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue index 9d889b39f7e..1c0944d45fc 100644 --- a/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue @@ -48,7 +48,6 @@ class="ci-action-icon-wrapper js-ci-status-icon" data-container="body" aria-label="Job's action"> - <icon - :name="actionIcon"/> + <icon :name="actionIcon"/> </a> </template> |