Show abort button during active bulk migration search

This commit is contained in:
schroda
2026-05-13 00:59:19 +02:00
parent 7fa106cd2c
commit af66bacc97
2 changed files with 10 additions and 2 deletions

View File

@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased] (Preview) ## [Unreleased] (Preview)
### Changed
- (**Migration**) Show "abort" button during active bulk migration search
### Fixed ### Fixed
- (**Migration**) Fix aborting bulk migration search/execution while webUI is served on a subpath - (**Migration**) Fix aborting bulk migration search/execution while webUI is served on a subpath

View File

@@ -127,9 +127,13 @@ export const MigrationSearch = () => {
/> />
</Stack> </Stack>
<MigrationContinueButton <MigrationContinueButton
title={t`Start migration`} title={!isSearchComplete || !hasMigratableEntries ? `Abort` : t`Start migration`}
isDisabled={!isSearchComplete || !hasMigratableEntries}
onClick={async () => { onClick={async () => {
if (!isSearchComplete || !hasMigratableEntries) {
await MigrationManager.abort('User aborted search');
return;
}
try { try {
const options = await AwaitableComponent.show(MigrationOptionsDialog); const options = await AwaitableComponent.show(MigrationOptionsDialog);
await MigrationManager.startMigration(options); await MigrationManager.startMigration(options);