Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-30 00:09:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-30 00:09:22 +0300
commit27d314277bfe7fffec215efa9b1833a23bb82940 (patch)
tree898c606409718e70579beea62174624f84e28629 /app/assets/javascripts/vue_shared
parent6b9d3a4e8351e662c4586b24bb152de78ae9e3bf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r--app/assets/javascripts/vue_shared/components/header_ci_component.vue24
1 files changed, 2 insertions, 22 deletions
diff --git a/app/assets/javascripts/vue_shared/components/header_ci_component.vue b/app/assets/javascripts/vue_shared/components/header_ci_component.vue
index dba4a9231a1..876eb7b899c 100644
--- a/app/assets/javascripts/vue_shared/components/header_ci_component.vue
+++ b/app/assets/javascripts/vue_shared/components/header_ci_component.vue
@@ -4,7 +4,6 @@ import { __, sprintf } from '~/locale';
import CiIconBadge from './ci_badge_link.vue';
import TimeagoTooltip from './time_ago_tooltip.vue';
import UserAvatarImage from './user_avatar/user_avatar_image.vue';
-import LoadingButton from '~/vue_shared/components/loading_button.vue';
/**
* Renders header component for job and pipeline page based on UI mockups
@@ -20,7 +19,6 @@ export default {
UserAvatarImage,
GlLink,
GlButton,
- LoadingButton,
},
directives: {
GlTooltip: GlTooltipDirective,
@@ -47,11 +45,6 @@ export default {
required: false,
default: () => ({}),
},
- actions: {
- type: Array,
- required: false,
- default: () => [],
- },
hasSidebarButton: {
type: Boolean,
required: false,
@@ -71,9 +64,6 @@ export default {
},
methods: {
- onClickAction(action) {
- this.$emit('actionClicked', action);
- },
onClickSidebarButton() {
this.$emit('clickedSidebarButton');
},
@@ -115,18 +105,8 @@ export default {
</template>
</section>
- <section v-if="actions.length" class="header-action-buttons">
- <template v-for="(action, i) in actions">
- <loading-button
- :key="i"
- :loading="action.isLoading"
- :disabled="action.isLoading"
- :class="action.cssClass"
- container-class="d-inline"
- :label="action.label"
- @click="onClickAction(action)"
- />
- </template>
+ <section v-if="$slots.default" class="header-action-buttons">
+ <slot></slot>
</section>
<gl-button
v-if="hasSidebarButton"