* Handles click on sidebar apps * @param {MouseEvent} e
(e)
| 158 | * @param {MouseEvent} e |
| 159 | */ |
| 160 | function onclick(e) { |
| 161 | const target = e.target; |
| 162 | const { action, id } = target.dataset; |
| 163 | |
| 164 | if (action !== "sidebar-app") return; |
| 165 | |
| 166 | setActiveApp(id); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Activates the given sidebar app and deactivates all others. |
nothing calls this directly
no test coverage detected