From 4fb5dee5a40003d0881ffb1a2fe841f4bb47f005 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 22 Sep 2023 10:45:40 +0530 Subject: [PATCH] settings: Fix live-update bug when changing user names. When changing name of users, the name was updated corectly in the "Users", "Deactivated users" and "Bots" list but it removed the "" element, used to open the user popover, and instead changed it to plain text. This commit updates the code to just update the text inside "" tag so that the popover can still be opened by clicking on the name. --- web/src/settings_users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/settings_users.js b/web/src/settings_users.js index 36c052d2c9..bec0b1a5dd 100644 --- a/web/src/settings_users.js +++ b/web/src/settings_users.js @@ -414,7 +414,7 @@ export function update_user_data(user_id, new_data) { if (new_data.full_name !== undefined) { // Update the full name in the table - $user_row.find(".user_name").text(new_data.full_name); + $user_row.find(".user_name .view_user_profile").text(new_data.full_name); } if (new_data.role !== undefined) {