File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/lib/components/Facets Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 26
26
ref: ShowMore ,
27
27
props: {
28
28
group ,
29
- handleSave ,
29
+ handleApply ,
30
30
handleCancel
31
31
}
32
32
}
45
45
46
46
const modalStore = getModalStore ();
47
47
48
- const handleSave = (group : SelectedFacetGroup ) => {
48
+ const handleApply = (group : SelectedFacetGroup ) => {
49
49
const { name : groupName, children } = group ;
50
50
51
51
dispatch (' showMoreOpenChange' , {
Original file line number Diff line number Diff line change 2
2
import type { SelectedFacetGroup } from ' $models/Models' ;
3
3
4
4
export let group: SelectedFacetGroup ;
5
- export let handleSave : (group : SelectedFacetGroup ) => {};
5
+ export let handleApply : (group : SelectedFacetGroup ) => {};
6
6
export let handleCancel: (groupName : string ) => {};
7
7
8
8
let selected = structuredClone (group .children );
15
15
Object .keys (selected ).forEach ((key ) => (selected [key ].selected = false ));
16
16
};
17
17
18
- const onSave = () => {
19
- handleSave ({
18
+ const onApply = () => {
19
+ handleApply ({
20
20
... group ,
21
21
children: selected
22
22
});
82
82
<button class ="btn btn-sm variant-filled-tertiary" on:click ={selectAll }>All</button >
83
83
</div >
84
84
<div class =" flex gap-3" >
85
- <button class ="btn btn-sm variant-filled-primary" on:click ={onSave }>Save </button >
85
+ <button class ="btn btn-sm variant-filled-primary" on:click ={onApply }>Apply </button >
86
86
<button class ="btn btn-sm variant-filled-secondary" on:click ={onCancel }>Cancel</button >
87
87
</div >
88
88
</div >
You can’t perform that action at this time.
0 commit comments