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

Function toggle

public/js/adminFolderAccess.js:336–342  ·  view source on GitHub ↗
(cap, label, checked, disabled, title = "")

Source from the content-addressed store, hash-verified

334 const shareFolderDisabled = isAdmin ? true : undefined;
335
336 const toggle = (cap, label, checked, disabled, title = "") => `
337 <label class="form-check fr-toggle perm-toggle" title="${title.replace(/"/g, '&quot;')}">
338 <input type="checkbox" class="fr-toggle-input" data-cap="${cap}"
339 ${checked ? 'checked' : ''} ${disabled ? 'disabled' : ''} aria-label="${label}">
340 <span>${label}</span>
341 </label>
342 `;
343
344 const group = (title, content, bodyClass = '', groupClass = '') => `
345 <div class="perm-group${groupClass ? ` ${groupClass}` : ''}">

Callers 2

rowHtmlFunction · 0.70
loadUserGroupsListFunction · 0.70

Calls 1

setExpandedFunction · 0.70

Tested by

no test coverage detected