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

work_item_weight.vue « components « work_items « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b0f2b3aa14a651342813c23871f620b2204c2291 (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
<script>
import { __ } from '~/locale';

export default {
  inject: ['hasIssueWeightsFeature'],
  props: {
    weight: {
      type: Number,
      required: false,
      default: undefined,
    },
  },
  computed: {
    weightText() {
      return this.weight ?? __('None');
    },
  },
};
</script>

<template>
  <div v-if="hasIssueWeightsFeature" class="gl-mb-5">
    <span class="gl-display-inline-block gl-font-weight-bold gl-w-15">{{ __('Weight') }}</span>
    {{ weightText }}
  </div>
</template>