MCPcopy Create free account
hub / github.com/continuedev/continue / onClickAddModel

Function onClickAddModel

gui/src/components/modelSelection/ModelSelect.tsx:206–222  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

204 }, [options, selectedModel]);
205
206 function onClickAddModel(e: MouseEvent) {
207 e.stopPropagation();
208 e.preventDefault();
209
210 closeDropDown(buttonRef.current);
211
212 dispatch(setShowDialog(true));
213 dispatch(
214 setDialogMessage(
215 <AddModelForm
216 onDone={() => {
217 dispatch(setShowDialog(false));
218 }}
219 />,
220 ),
221 );
222 }
223
224 function onClickConfigureModels(e: React.MouseEvent) {
225 e.stopPropagation();

Callers

nothing calls this directly

Calls 1

closeDropDownFunction · 0.85

Tested by

no test coverage detected