mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 18:49:11 +03:00
ensure that selectedOwnership
is correctly removing unselected files
This commit is contained in:
parent
bef7a431a2
commit
fdc82bbeb8
@ -32,8 +32,17 @@
|
||||
let draggableElt: HTMLDivElement;
|
||||
let lastCheckboxDetail = true;
|
||||
|
||||
$: if (!lastCheckboxDetail) {
|
||||
selectedOwnership?.update((ownership) => {
|
||||
file.hunks.forEach((h) => ownership.remove(file.id, h.id));
|
||||
return ownership;
|
||||
});
|
||||
}
|
||||
|
||||
$: if (file && $selectedOwnership) {
|
||||
checked = file.hunks.every((hunk) => $selectedOwnership?.contains(file.id, hunk.id)) && lastCheckboxDetail;
|
||||
checked =
|
||||
file.hunks.every((hunk) => $selectedOwnership?.contains(file.id, hunk.id)) &&
|
||||
lastCheckboxDetail;
|
||||
}
|
||||
|
||||
$: if ($fileIdSelection && draggableElt)
|
||||
|
Loading…
Reference in New Issue
Block a user