MCPcopy Create free account
hub / github.com/error311/FileRise / syncModeVisuals

Function syncModeVisuals

public/js/folderShareModal.js:248–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 const aiEnabledEl = document.getElementById("folderShareAiEnabled");
247
248 const syncModeVisuals = () => {
249 if (!dropModeEl) return;
250 const dropEnabled = !!dropModeEl.checked;
251 if (browseModeBtn) browseModeBtn.classList.toggle("is-active", !dropEnabled);
252 if (requestModeBtn) requestModeBtn.classList.toggle("is-active", dropEnabled);
253 if (modeNoticeEl) {
254 modeNoticeEl.textContent = dropEnabled
255 ? t("share_mode_notice_request")
256 : t("share_mode_notice_browse");
257 }
258 };
259
260 const syncDropMode = () => {
261 if (!allowUploadEl || !dropModeEl) return;

Callers 1

syncDropModeFunction · 0.85

Calls 1

tFunction · 0.85

Tested by

no test coverage detected