mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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 !== undefined) {
|
||||||
if (new_data.is_admin) {
|
if (new_data.is_admin) {
|
||||||
user_row.find('#admin_icon').show();
|
user_row.find(".user_role").text(i18n.t("Administrator"));
|
||||||
} else {
|
} else {
|
||||||
user_row.find('#admin_icon').hide();
|
user_row.find(".user_role").text(i18n.t("Member"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user