mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
settings_users: Change "role" column text on updation.
This reflects the newly selected value of role in "role" column under active-users section and deletes the redundant admin-icon updation code( As we already removed bolt admin-icon)
This commit is contained in:
committed by
Tim Abbott
parent
b60005c5bb
commit
cc0ac4d340
@@ -66,9 +66,9 @@ exports.update_user_data = function (user_id, new_data) {
|
||||
|
||||
if (new_data.is_admin !== undefined) {
|
||||
if (new_data.is_admin) {
|
||||
user_row.find('#admin_icon').show();
|
||||
user_row.find(".user_role").text(i18n.t("Administrator"));
|
||||
} else {
|
||||
user_row.find('#admin_icon').hide();
|
||||
user_row.find(".user_role").text(i18n.t("Member"));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user