refactor(ui): use JSON format as runtime configuration
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / charging-stations / IdTagInputModal.vue
CommitLineData
32de5a57 1<template>
8fc2e5cc 2 <Modal :visibility="props.visibility">
5a010bf0 3 <label for="idTag">IdTag</label>
32de5a57 4 <!-- eslint-disable-next-line vue/no-mutating-props -->
01ff4231 5 <input v-model="props.idTag" type="text" name="idTag" @keypress.enter="done()" />
32de5a57
LM
6 <Button @click="done()">
7 <slot></slot>
8 </Button>
9 </Modal>
10</template>
11
12<script setup lang="ts">
9d76f5ec 13import Button from '@/components/buttons/Button.vue'
66a7748d 14import Modal from '@/components/Modal.vue'
32de5a57
LM
15
16const props = defineProps<{
66a7748d
JB
17 visibility: boolean
18 idTag: string
19}>()
32de5a57 20
66a7748d 21const emit = defineEmits(['done'])
32de5a57
LM
22
23function done() {
66a7748d 24 emit('done')
32de5a57
LM
25}
26</script>