Skip to content

Commit

Permalink
fix: submit on click
Browse files Browse the repository at this point in the history
At previous change was added the native type equals to submit to all
buttons, but at some buttons the click action stopped to work. The
click action was added again.

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jan 16, 2025
1 parent 8857a3c commit ad95c43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Components/Request/RequestPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
<template #actions>
<NcButton :disabled="!canUploadFronUrl"
type="primary"
native-type="submit">
native-type="submit"
@click="uploadUrl()">
{{ t('libresign', 'Send') }}
<template #icon>
<NcLoadingIcon v-if="loading" :size="20" />
Expand Down
1 change: 1 addition & 0 deletions src/views/CreatePassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<template #actions>
<NcButton :disabled="hasLoading"
native-type="submit"
@click="send()"
type="primary">

Check warning on line 20 in src/views/CreatePassword.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "type" should go before "@click"
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
Expand Down
1 change: 1 addition & 0 deletions src/views/ReadCertificate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<template v-if="Object.keys(certificateData).length === 0" #actions>
<NcButton :disabled="hasLoading"
native-type="submit"
@click="send()"
type="primary">

Check warning on line 89 in src/views/ReadCertificate.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "type" should go before "@click"
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
Expand Down
1 change: 1 addition & 0 deletions src/views/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<NcButton :disabled="!canSave"
:class="hasLoading ? 'btn-load loading primary btn-confirm' : 'primary btn-confirm'"
native-type="submit"
@click="send()"
type="primary">

Check warning on line 26 in src/views/ResetPassword.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "type" should go before "@click"
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
Expand Down
3 changes: 2 additions & 1 deletion src/views/SignPDF/_partials/Sign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
<template #actions>
<NcButton type="primary"
:disabled="signPassword.length < 3 || loading"
native-type="submit">
native-type="submit"
@click="signWithPassword()">
<template #icon>
<NcLoadingIcon v-if="loading" :size="20" />
</template>
Expand Down

0 comments on commit ad95c43

Please sign in to comment.