Skip to content

Commit

Permalink
Disable cancel button when cancelling
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed May 6, 2022
1 parent e8be1c6 commit 9ca72cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ExportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<Button class="section__modal-button"
type="secondary"
:aria-label="t('user_migration', 'Cancel export')"
:disabled="status.status !== 'waiting'"
:disabled="status.status !== 'waiting' || cancellingExport"
@click.stop.prevent="cancelExport">
{{ t('user_migration', 'Cancel') }}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<Button class="section__modal-button"
type="secondary"
:aria-label="t('user_migration', 'Cancel import')"
:disabled="status.status !== 'waiting'"
:disabled="status.status !== 'waiting' || cancellingImport"
@click.stop.prevent="cancelImport">
{{ t('user_migration', 'Cancel') }}
</Button>
Expand Down

0 comments on commit 9ca72cb

Please sign in to comment.