create qr code progress
Deploy app frontend / app frontend (push) Successful in 1m45s
Deploy service couchdb / service couchdb (push) Successful in 33s

This commit is contained in:
2024-12-06 11:47:45 +02:00
parent 4036c89380
commit 7f27948d79
2 changed files with 21 additions and 11 deletions
@@ -8,14 +8,20 @@
<InputText id="name" v-model="name" class="w-full" placeholder="Введите название" />
<p v-if="!name" class="text-red-500 text-sm mt-1">Название обязательно.</p>
<Button type="submit" :label="buttonLabel" class="p-button-md mt-4 mb-4" :disabled="!name" />
<Button
type="submit"
:label="buttonLabel"
class="p-button-md mt-4 mb-4"
:loading="isPending"
:disabled="!name || isPending"
/>
</form>
</section>
</template>
<script setup lang="ts">
import { type QRCodeDocument } from '@hereconnect/types'
defineProps<{ buttonLabel: string }>()
defineProps<{ buttonLabel: string; isPending: boolean }>()
const name = defineModel<QRCodeDocument['name']>('name')
const emit = defineEmits(['nextStep'])
</script>