(activeColor)
| 638 | let folderEditor = null; |
| 639 | |
| 640 | function folderColorButtonsHtml(activeColor) { |
| 641 | return FOLDER_COLORS.map((color, index) => ` |
| 642 | <button |
| 643 | class="folder-color-dot${color === activeColor ? " active" : ""}" |
| 644 | type="button" |
| 645 | data-color="${color}" |
| 646 | style="--folder-color: ${color};" |
| 647 | aria-label="Set folder color ${index + 1}" |
| 648 | aria-pressed="${color === activeColor}" |
| 649 | ></button> |
| 650 | `).join(""); |
| 651 | } |
| 652 | |
| 653 | function closeFolderEditor() { |
| 654 | folderEditor?.remove(); |