Skip to content

Commit

Permalink
add more infos to delete Popup (#588)
Browse files Browse the repository at this point in the history
* add more infos to Popup

* change wording
  • Loading branch information
T0biii authored Feb 10, 2024
1 parent d9636d9 commit 9d93a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/pages/admin/AllDevices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const AllDevices = observer(class AllDevices extends React.Component {
});

deleteUser = async (user: User.AsObject) => {
if (await confirm('Are you sure?')) {
if (await confirm('Are you sure you want to delete ' + user.name + '?')) {
await grpc.users.deleteUser({
name: user.name,
});
Expand All @@ -43,7 +43,7 @@ export const AllDevices = observer(class AllDevices extends React.Component {
}

deleteDevice = async (device: Device.AsObject) => {
if (await confirm('Are you sure?')) {
if (await confirm('Are you sure you want to delete ' + device.name + ' from ' + device.ownerName + '?')) {
await grpc.devices.deleteDevice({
name: device.name,
owner: { value: device.owner },
Expand Down

0 comments on commit 9d93a31

Please sign in to comment.