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 2626 ref: ShowMore ,
2727 props: {
2828 group ,
29- handleSave ,
29+ handleApply ,
3030 handleCancel
3131 }
3232 }
4545
4646 const modalStore = getModalStore ();
4747
48- const handleSave = (group : SelectedFacetGroup ) => {
48+ const handleApply = (group : SelectedFacetGroup ) => {
4949 const { name : groupName, children } = group ;
5050
5151 dispatch (' showMoreOpenChange' , {
Original file line number Diff line number Diff line change 22 import type { SelectedFacetGroup } from ' $models/Models' ;
33
44 export let group: SelectedFacetGroup ;
5- export let handleSave : (group : SelectedFacetGroup ) => {};
5+ export let handleApply : (group : SelectedFacetGroup ) => {};
66 export let handleCancel: (groupName : string ) => {};
77
88 let selected = structuredClone (group .children );
1515 Object .keys (selected ).forEach ((key ) => (selected [key ].selected = false ));
1616 };
1717
18- const onSave = () => {
19- handleSave ({
18+ const onApply = () => {
19+ handleApply ({
2020 ... group ,
2121 children: selected
2222 });
8282 <button class ="btn btn-sm variant-filled-tertiary" on:click ={selectAll }>All</button >
8383 </div >
8484 <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 >
8686 <button class ="btn btn-sm variant-filled-secondary" on:click ={onCancel }>Cancel</button >
8787 </div >
8888 </div >
You can’t perform that action at this time.
0 commit comments