MCPcopy Create free account
hub / github.com/bajrangCoder/setu / AuthEditor

Class AuthEditor

src/components/auth_editor.rs:286–301  ·  view source on GitHub ↗

Authentication editor component

Source from the content-addressed store, hash-verified

284 api_key_location_select,
285 focus_handle: cx.focus_handle(),
286 completion_engine,
287 }
288 }
289
290 /// Initialize inputs lazily
291 fn ensure_inputs(&mut self, window: &mut Window, cx: &mut Context<Self>) {
292 if self.username_input.is_none() {
293 let completion_engine = self.completion_engine.clone();
294 self.username_input = Some(cx.new(|cx| {
295 configure_completion(
296 InputState::new(window, cx).placeholder("Username"),
297 completion_engine.as_ref(),
298 CompletionContext::Auth,
299 )
300 }));
301 let completion_engine = self.completion_engine.clone();
302 self.password_input = Some(cx.new(|cx| {
303 configure_completion(
304 InputState::new(window, cx).placeholder("Password"),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected