feat: ensure forms submit on Enter (#959)
This commit is contained in:
parent
d94429d33c
commit
e1d1e7c848
|
|
@ -121,7 +121,10 @@ function handleBubbleSave() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<form @focusout="handleBubbleSave">
|
<form
|
||||||
|
@focusout="handleBubbleSave"
|
||||||
|
@submit.prevent="save"
|
||||||
|
>
|
||||||
<FormField
|
<FormField
|
||||||
id="title"
|
id="title"
|
||||||
v-model="view.title"
|
v-model="view.title"
|
||||||
|
|
@ -271,7 +274,7 @@ function handleBubbleSave() {
|
||||||
</XButton>
|
</XButton>
|
||||||
<XButton
|
<XButton
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="save"
|
type="submit"
|
||||||
>
|
>
|
||||||
{{ $t('misc.save') }}
|
{{ $t('misc.save') }}
|
||||||
</XButton>
|
</XButton>
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,11 @@
|
||||||
:change-immediately="true"
|
:change-immediately="true"
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="is-hidden"
|
||||||
|
tabindex="-1"
|
||||||
|
/>
|
||||||
</form>
|
</form>
|
||||||
</CreateEdit>
|
</CreateEdit>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
<XButton
|
<XButton
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
class="is-fullwidth"
|
class="is-fullwidth"
|
||||||
@click="editLabelSubmit()"
|
type="submit"
|
||||||
>
|
>
|
||||||
{{ $t('misc.save') }}
|
{{ $t('misc.save') }}
|
||||||
</XButton>
|
</XButton>
|
||||||
|
|
|
||||||
|
|
@ -41,27 +41,27 @@
|
||||||
:placeholder="$t('team.attributes.descriptionPlaceholder')"
|
:placeholder="$t('team.attributes.descriptionPlaceholder')"
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="field has-addons mbs-4">
|
<div class="field has-addons mbs-4">
|
||||||
<div class="control is-fullwidth">
|
<div class="control is-fullwidth">
|
||||||
<XButton
|
<XButton
|
||||||
:loading="teamService.loading"
|
:loading="teamService.loading"
|
||||||
class="is-fullwidth"
|
class="is-fullwidth"
|
||||||
@click="save()"
|
type="submit"
|
||||||
>
|
>
|
||||||
{{ $t('misc.save') }}
|
{{ $t('misc.save') }}
|
||||||
</XButton>
|
</XButton>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<XButton
|
||||||
|
:loading="teamService.loading"
|
||||||
|
danger
|
||||||
|
icon="trash-alt"
|
||||||
|
@click="showDeleteModal = true"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
</form>
|
||||||
<XButton
|
|
||||||
:loading="teamService.loading"
|
|
||||||
danger
|
|
||||||
icon="trash-alt"
|
|
||||||
@click="showDeleteModal = true"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ function toggleGroupPermissionsFromChild(group: string, checked: boolean) {
|
||||||
</p>
|
</p>
|
||||||
<XButton
|
<XButton
|
||||||
:loading="service.loading"
|
:loading="service.loading"
|
||||||
@click="createToken"
|
type="submit"
|
||||||
>
|
>
|
||||||
{{ $t('user.settings.apiTokens.createToken') }}
|
{{ $t('user.settings.apiTokens.createToken') }}
|
||||||
</XButton>
|
</XButton>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue