File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 403
403
{#if ! isNonLocalPr }
404
404
<div class =" preview-selection" >
405
405
<ConfigurableScrollableContainer zIndex =" var(--z-lifted)" >
406
- <SelectionView
407
- testId ={TestId .BranchesSelectionView }
408
- {projectId }
409
- {selectionId }
410
- notClosable
411
- />
406
+ <SelectionView testId ={TestId .BranchesSelectionView } {projectId } {selectionId } />
412
407
</ConfigurableScrollableContainer >
413
408
</div >
414
409
{/if }
Original file line number Diff line number Diff line change 18
18
draggableFiles? : boolean ;
19
19
diffOnly? : boolean ;
20
20
onclose? : () => void ;
21
- notClosable? : boolean ;
22
21
testId? : string ;
23
22
bottomBorder? : boolean ;
24
23
};
29
28
draggableFiles : draggable,
30
29
diffOnly,
31
30
onclose,
32
- notClosable,
33
31
testId,
34
32
bottomBorder
35
33
}: Props = $props ();
83
81
isHeader
84
82
executable ={!! isExecutable }
85
83
listMode =" list"
86
- onCloseClick ={notClosable
87
- ? undefined
88
- : () => {
89
- if (idSelection ) {
90
- idSelection .remove (selectedFile .path , selectedFile );
91
- }
92
- onclose ?.();
93
- }}
84
+ onCloseClick ={onclose }
94
85
/>
95
86
{/if }
96
87
<UnifiedDiffView
Original file line number Diff line number Diff line change 136
136
137
137
{#snippet leftPreview ()}
138
138
<ConfigurableScrollableContainer zIndex =" var(--z-lifted)" >
139
- <SelectionView bottomBorder {projectId } {selectionId } draggableFiles />
139
+ <SelectionView
140
+ bottomBorder
141
+ {projectId }
142
+ {selectionId }
143
+ draggableFiles
144
+ onclose ={() => {
145
+ idSelection .clear (selectionId );
146
+ }}
147
+ />
140
148
</ConfigurableScrollableContainer >
141
149
{/ snippet }
142
150
You can’t perform that action at this time.
0 commit comments