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

runner_edit_disclosure_dropdown_item.vue « components « runner « ci « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d0dcc04c3dc578c227d34da5862b04eeb6b306dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script>
import { GlDisclosureDropdownItem } from '@gitlab/ui';

import { I18N_EDIT } from '../constants';

export default {
  name: 'RunnerEditDisclosureDropdownItem',
  components: {
    GlDisclosureDropdownItem,
  },
  props: {
    href: {
      type: String,
      required: false,
      default: null,
    },
  },
  computed: {
    item() {
      return { text: I18N_EDIT, href: this.href };
    },
  },
  I18N_EDIT,
};
</script>

<template>
  <gl-disclosure-dropdown-item v-if="href" :item="item" />
</template>