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: 3f1f239a806c74765d853a68e27c51c371676f42 (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
<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>