Skip to content

Let users stop a running SQL import #815

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock=connected. Toolbar → Import, SQL File tab, Select file (shop_backup.sql, 46.5 MB).
  2. Click Execute SQL.

During the run both footer buttons are disabled ("Cancel" greyed out, "Executing..."), and so is the header X. A large dump cannot be stopped once started, unlike Backup and Restore, which both offer Cancel.

Cause

src/components/import/ImportDialog.tsx:731-745: Cancel is disabled={importing} and there is no cancel handler; importIdRef is set but never used to stop the job.

Fix

Keep a Cancel button enabled during an SQL import and wire it to the job-cancel command restore already uses (api.cancelBackup(id) with importIdRef.current). Show the same "cancelled / what was applied" summary the restore dialog shows.

Part of #783.

Activity

  1. added
    enhancement
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    0edc7d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions