MCPcopy Index your code
hub / github.com/massCodeIO/massCode / updateTargetButtons

Function updateTargetButtons

integrations/clipper/src/popup.ts:198–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198function updateTargetButtons(): void {
199 targetButtons.forEach((button) => {
200 button.dataset.active
201 = button.dataset.target === activeTarget ? 'true' : 'false'
202 })
203
204 if (captureLabel) {
205 captureLabel.textContent = getCaptureButtonLabel(activeTarget)
206 }
207
208 if (captureButton) {
209 captureButton.disabled = !canCaptureCurrentTarget()
210 }
211}
212
213function updateCaptureName(force = false): void {
214 if (!captureNameInput || !currentPayload) {

Callers 2

initFunction · 0.85
bindEventsFunction · 0.85

Calls 2

getCaptureButtonLabelFunction · 0.85
canCaptureCurrentTargetFunction · 0.85

Tested by

no test coverage detected