()
| 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 |
no test coverage detected