fix: reopen the merge dialog after dismissing it
This commit is contained in:
@@ -190,7 +190,16 @@
|
||||
<MergeBooks
|
||||
books={recordsFor(merging)}
|
||||
libraryId={page.params.libraryId!}
|
||||
open={true}
|
||||
bind:open={
|
||||
() => merging !== null,
|
||||
(value) => {
|
||||
// Bound, not passed as a bare `true`: the dialog closes itself on an
|
||||
// outside click or Escape, and if that never reaches `merging` the
|
||||
// group stays set — the button then re-assigns the same group,
|
||||
// nothing changes, and the workbench never reopens.
|
||||
if (!value) merging = null;
|
||||
}
|
||||
}
|
||||
onmerged={() => (merging = null)}
|
||||
/>
|
||||
{/key}
|
||||
|
||||
Reference in New Issue
Block a user