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:
Diffstat (limited to 'app/assets/javascripts/jobs/components/job/sidebar/job_sidebar_retry_button.vue')
-rw-r--r--app/assets/javascripts/jobs/components/job/sidebar/job_sidebar_retry_button.vue81
1 files changed, 0 insertions, 81 deletions
diff --git a/app/assets/javascripts/jobs/components/job/sidebar/job_sidebar_retry_button.vue b/app/assets/javascripts/jobs/components/job/sidebar/job_sidebar_retry_button.vue
deleted file mode 100644
index 87c47f592aa..00000000000
--- a/app/assets/javascripts/jobs/components/job/sidebar/job_sidebar_retry_button.vue
+++ /dev/null
@@ -1,81 +0,0 @@
-<script>
-import { GlButton, GlDisclosureDropdown, GlModalDirective } from '@gitlab/ui';
-// eslint-disable-next-line no-restricted-imports
-import { mapGetters } from 'vuex';
-import { JOB_SIDEBAR_COPY } from '~/jobs/constants';
-
-export default {
- name: 'JobSidebarRetryButton',
- i18n: {
- ...JOB_SIDEBAR_COPY,
- },
- components: {
- GlButton,
- GlDisclosureDropdown,
- },
- directives: {
- GlModal: GlModalDirective,
- },
- props: {
- modalId: {
- type: String,
- required: true,
- },
- href: {
- type: String,
- required: true,
- },
- isManualJob: {
- type: Boolean,
- required: true,
- },
- },
- computed: {
- ...mapGetters(['hasForwardDeploymentFailure']),
- dropdownItems() {
- return [
- {
- text: this.$options.i18n.runAgainJobButtonLabel,
- href: this.href,
- extraAttrs: {
- 'data-method': 'post',
- },
- },
- {
- text: this.$options.i18n.updateVariables,
- action: () => this.$emit('updateVariablesClicked'),
- },
- ];
- },
- },
-};
-</script>
-<template>
- <gl-button
- v-if="hasForwardDeploymentFailure"
- v-gl-modal="modalId"
- :aria-label="$options.i18n.retryJobLabel"
- category="primary"
- variant="confirm"
- icon="retry"
- data-testid="retry-job-button"
- />
- <gl-disclosure-dropdown
- v-else-if="isManualJob"
- icon="retry"
- category="primary"
- placement="right"
- variant="confirm"
- :items="dropdownItems"
- />
- <gl-button
- v-else
- :href="href"
- :aria-label="$options.i18n.retryJobLabel"
- category="primary"
- variant="confirm"
- icon="retry"
- data-method="post"
- data-testid="retry-job-link"
- />
-</template>