File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
thingconnect.pulse.client/src/features/users Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ export function UserActions({
204204 _dark = { { _hover : { bg : 'red.900' , color : 'red.300' } } }
205205 >
206206 < Icon as = { Trash2 } boxSize = { 4 } />
207- Delete User
207+ Remove User
208208 </ Menu . Item >
209209 </ Menu . Content >
210210 </ Menu . Positioner >
@@ -219,7 +219,7 @@ export function UserActions({
219219 < Dialog . Positioner >
220220 < DialogContent >
221221 < DialogHeader >
222- < DialogTitle > Delete User</ DialogTitle >
222+ < DialogTitle > Remove User</ DialogTitle >
223223 </ DialogHeader >
224224
225225 < VStack gap = { 4 } py = { 4 } >
@@ -231,8 +231,8 @@ export function UserActions({
231231 ) }
232232
233233 < Text >
234- Are you sure you want to delete the user < strong > { user . username } </ strong > ?
235- This action cannot be undone .
234+ Are you sure you want to remove the user < strong > { user . username } </ strong > ?
235+ This will deactivate their account and prevent login, but preserves all data for audit purposes .
236236 </ Text >
237237 </ VStack >
238238
@@ -248,9 +248,9 @@ export function UserActions({
248248 colorPalette = "red"
249249 onClick = { handleDelete }
250250 loading = { actionLoading }
251- loadingText = "Deleting ..."
251+ loadingText = "Removing ..."
252252 >
253- Delete User
253+ Remove User
254254 </ LoadingButton >
255255 </ DialogFooter >
256256 </ DialogContent >
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export function useUserManagement(): UseUserManagementReturn {
9999 try {
100100 setActionLoading ( true ) ;
101101 setError ( null ) ;
102+ // Note: This performs a soft delete (deactivation) rather than hard delete
102103 await UserManagementService . deleteUser ( id ) ;
103104 // Refresh the users list after deletion
104105 await loadUsers ( ) ;
You can’t perform that action at this time.
0 commit comments