diff --git a/Server/wwwroot/src/Main/DataGrid.ts b/Server/wwwroot/src/Main/DataGrid.ts index 276f52ec..cbd131c5 100644 --- a/Server/wwwroot/src/Main/DataGrid.ts +++ b/Server/wwwroot/src/Main/DataGrid.ts @@ -186,7 +186,9 @@ export function RenderDeviceRows() { BrowserHubConnection.StartRemoteControl(device.ID, true); }; (recordRow.querySelector(".device-remove-button") as HTMLButtonElement).onclick = (ev) => { - BrowserHubConnection.Connection.invoke("RemoveDevices", [ device.ID ]); + if (confirm("Are you sure you want to remove this device?")) { + BrowserHubConnection.Connection.invoke("RemoveDevices", [ device.ID ]); + } }; } }