From af66bacc97b902a040c242030c0f10ef71d4e4a4 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 13 May 2026 00:59:19 +0200 Subject: [PATCH] Show abort button during active bulk migration search --- CHANGELOG.md | 4 ++++ src/features/migration/screens/MigrationSearch.tsx | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 705abb7d..edcb7bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] (Preview) +### Changed + +- (**Migration**) Show "abort" button during active bulk migration search + ### Fixed - (**Migration**) Fix aborting bulk migration search/execution while webUI is served on a subpath diff --git a/src/features/migration/screens/MigrationSearch.tsx b/src/features/migration/screens/MigrationSearch.tsx index 465ece32..17537ebe 100644 --- a/src/features/migration/screens/MigrationSearch.tsx +++ b/src/features/migration/screens/MigrationSearch.tsx @@ -127,9 +127,13 @@ export const MigrationSearch = () => { /> { + if (!isSearchComplete || !hasMigratableEntries) { + await MigrationManager.abort('User aborted search'); + return; + } + try { const options = await AwaitableComponent.show(MigrationOptionsDialog); await MigrationManager.startMigration(options);