mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Confirm device removal.
This commit is contained in:
parent
91053e21a2
commit
a90a096c13
@ -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 ]);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user