(event: DelegateEvent<MouseEvent, HTMLElement>)
| 70 | const markAsViewed = clickAll(markAsViewedSelector); |
| 71 | |
| 72 | function onAltClick(event: DelegateEvent<MouseEvent, HTMLElement>): void { |
| 73 | const file = closestElement(fileSelector, event.delegateTarget); |
| 74 | const newState = isChecked(file) ? 'viewed' : 'unviewed'; |
| 75 | |
| 76 | void showToast(async () => { |
| 77 | markAsViewed(event); |
| 78 | }, { |
| 79 | message: `Marking visible files as ${newState}`, |
| 80 | doneMessage: `Files marked as ${newState}`, |
| 81 | }); |
| 82 | } |
| 83 | |
| 84 | function handleClick(event: DelegateEvent<MouseEvent, HTMLElement>): void { |
| 85 | if (!event.isTrusted) { |
no test coverage detected