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

prompt.vue « cells « notebook « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d96f701ee3e596729ab380c8d027e42bc2b7a2a3 (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
30
31
32
33
34
35
36
37
<script>
export default {
  props: {
    type: {
      type: String,
      required: false,
      default: '',
    },
    count: {
      type: Number,
      required: false,
      default: 0,
    },
  },
  computed: {
    hasKeys() {
      return this.type !== '' && this.count;
    },
  },
};
</script>

<template>
  <div class="prompt">
    <span v-if="hasKeys">
      {{ type }} [{{ count }}]:
    </span>
  </div>
</template>

<style scoped>
.prompt {
  padding: 0 10px;
  min-width: 7em;
  font-family: monospace;
}
</style>