Skip to content

Commit

Permalink
Disable cancel button while cancelling
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 9ca72cb)
  • Loading branch information
Pytal committed Feb 16, 2023
1 parent d577d43 commit 4684a2a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/user_migration-personal-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/user_migration-personal-settings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/ExportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</NcButton>
<NcButton type="tertiary"
:aria-label="t('user_migration', 'Cancel export')"
:disabled="status.status !== 'waiting'"
:disabled="status.status !== 'waiting' || cancellingExport"
@click.stop.prevent="cancelExport">
{{ t('user_migration', 'Cancel') }}
</NcButton>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</NcButton>
<NcButton type="tertiary"
:aria-label="t('user_migration', 'Cancel import')"
:disabled="status.status !== 'waiting'"
:disabled="status.status !== 'waiting' || cancellingImport"
@click.stop.prevent="cancelImport">
{{ t('user_migration', 'Cancel') }}
</NcButton>
Expand Down

0 comments on commit 4684a2a

Please sign in to comment.