From 42a8a0b40c6f02552a50c7065d2691c8303f495a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Jun 2021 11:34:20 +0200 Subject: [PATCH] ui: user: show user-removal as dangerous While one can re-add a user quite easily, the ACLs and the old password may still be lost, so not really just like a simple "undo". That's why it should show the warning triangle and have no selected as default. Signed-off-by: Thomas Lamprecht --- www/manager6/dc/UserView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js index b1646950..244c30f6 100644 --- a/www/manager6/dc/UserView.js +++ b/www/manager6/dc/UserView.js @@ -28,6 +28,7 @@ Ext.define('PVE.dc.UserView', { let remove_btn = Ext.create('Proxmox.button.StdRemoveButton', { selModel: sm, baseurl: '/access/users/', + dangerous: true, enableFn: rec => caps.access['User.Modify'] && rec.data.userid !== 'root@pam', callback: () => reload(), }); -- 2.39.2