(action: string | undefined)
| 182 | } |
| 183 | |
| 184 | async function executeAction(action: string | undefined): Promise<void> { |
| 185 | if (!action || !current) return |
| 186 | setActionMode(false) |
| 187 | if (action === "Authenticate") await reauthSelected() |
| 188 | else if (action === "Enable") await enableSelected() |
| 189 | else if (action === "Disable") await disableSelected() |
| 190 | else if (action === "Reconnect") await reconnectSelected() |
| 191 | else if (action === "Delete") await deleteSelected() |
| 192 | } |
| 193 | |
| 194 | async function enableSelected(): Promise<void> { |
| 195 | if (!current) return |
no test coverage detected