Skip to content

Commit

Permalink
Merge pull request #3966 from LibreSign/backport/3965/stable30
Browse files Browse the repository at this point in the history
[stable30] chore: disable buttons when is processing the action
  • Loading branch information
vitormattos authored Nov 15, 2024
2 parents 5ea90c5 + 31a2e78 commit f9cd75b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/FilesList/FileEntry/FileEntryActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,22 @@
:can-close="!deleting"
:open.sync="confirmDelete">
{{ t('libresign', 'The signature request will be deleted. Do you confirm this action?') }}
<NcCheckboxRadioSwitch :checked.sync="deleteFile" type="switch">
<NcCheckboxRadioSwitch type="switch"
:checked.sync="deleteFile"
:disabled="deleting">
{{ t('libresign', 'Also delete the file.') }}
</NcCheckboxRadioSwitch>
<template #actions>
<NcButton type="primary"
:disabled="deleting"
@click="doDelete()">
<template #icon>
<NcLoadingIcon v-if="deleting" :size="20" />
</template>
{{ t('libresign', 'Ok') }}
</NcButton>
<NcButton type="secondary"
:disabled="deleting"
@click="confirmDelete = false">
{{ t('libresign', 'Cancel') }}
</NcButton>
Expand Down

0 comments on commit f9cd75b

Please sign in to comment.