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)
|
## [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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user