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:
Pragati Agrawal
2018-10-19 13:08:19 +05:30
committed by Tim Abbott
parent b60005c5bb
commit cc0ac4d340

View File

@@ -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"));
}
}
};