MCPcopy Index your code
hub / github.com/ResearAI/AutoFigure-Edit / syncSamApiKeyVisibility

Function syncSamApiKeyVisibility

web/app.js:1046–1057  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1044 }
1045
1046 function syncSamApiKeyVisibility() {
1047 const shouldShow =
1048 samBackend &&
1049 (samBackend.value === "fal" || samBackend.value === "roboflow");
1050 if (samApiKeyGroup) {
1051 samApiKeyGroup.hidden = !shouldShow;
1052 }
1053 if (!shouldShow && samApiKeyInput) {
1054 samApiKeyInput.value = "";
1055 }
1056 saveInputState();
1057 }
1058
1059 applyInputState();
1060

Callers 2

initInputPageFunction · 0.85
initImportPageFunction · 0.85

Calls 2

saveInputStateFunction · 0.85
saveImportStateFunction · 0.85

Tested by

no test coverage detected