Show abort button during active bulk migration search
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -127,9 +127,13 @@ export const MigrationSearch = () => {
|
||||
/>
|
||||
</Stack>
|
||||
<MigrationContinueButton
|
||||
title={t`Start migration`}
|
||||
isDisabled={!isSearchComplete || !hasMigratableEntries}
|
||||
title={!isSearchComplete || !hasMigratableEntries ? `Abort` : t`Start migration`}
|
||||
onClick={async () => {
|
||||
if (!isSearchComplete || !hasMigratableEntries) {
|
||||
await MigrationManager.abort('User aborted search');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const options = await AwaitableComponent.show(MigrationOptionsDialog);
|
||||
await MigrationManager.startMigration(options);
|
||||
|
||||
Reference in New Issue
Block a user