summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/components/stage.vue
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-05-23 14:10:16 +0300
committerValery Sizov <valery@gitlab.com>2017-05-23 14:10:16 +0300
commit2158beddeed688fee701a00d21752dd253866548 (patch)
treea615157f9ada6da50717b8da69ec45c3f06b378d /app/assets/javascripts/pipelines/components/stage.vue
parent719e30c53d1d0690fa9e96fa488047e0a68d00a2 (diff)
parent12e77890c29c0451ac7a1a59727df4d56bc9741b (diff)
downloadgitlab-ce-2158beddeed688fee701a00d21752dd253866548.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 17489-hide-code-from-guests
Diffstat (limited to 'app/assets/javascripts/pipelines/components/stage.vue')
-rw-r--r--app/assets/javascripts/pipelines/components/stage.vue19
1 files changed, 8 insertions, 11 deletions
diff --git a/app/assets/javascripts/pipelines/components/stage.vue b/app/assets/javascripts/pipelines/components/stage.vue
index 2e485f951a1..7fc19fce1ff 100644
--- a/app/assets/javascripts/pipelines/components/stage.vue
+++ b/app/assets/javascripts/pipelines/components/stage.vue
@@ -14,7 +14,8 @@
*/
/* global Flash */
-import StatusIconEntityMap from '../../ci_status_icons';
+import { borderlessStatusIconEntityMap } from '../../vue_shared/ci_status_icons';
+import loadingIcon from '../../vue_shared/components/loading_icon.vue';
export default {
props: {
@@ -38,6 +39,10 @@ export default {
};
},
+ components: {
+ loadingIcon,
+ },
+
updated() {
if (this.dropdownContent.length > 0) {
this.stopDropdownClickPropagation();
@@ -113,7 +118,7 @@ export default {
},
svgIcon() {
- return StatusIconEntityMap[this.stage.status.icon];
+ return borderlessStatusIconEntityMap[this.stage.status.icon];
},
},
};
@@ -153,15 +158,7 @@ export default {
:class="dropdownClass"
class="js-builds-dropdown-list scrollable-menu">
- <div
- class="text-center"
- v-if="isLoading">
- <i
- class="fa fa-spin fa-spinner"
- aria-hidden="true"
- aria-label="Loading">
- </i>
- </div>
+ <loading-icon v-if="isLoading"/>
<ul
v-else