mirror of https://github.com/zulip/zulip.git
settings: Fix erroneous meta.loaded check for name/email change.
That check is for the settings_org.js page, which is of course not actually the page that these fields are on.
This commit is contained in:
parent
9b8c541a74
commit
63db3e0b3d
|
@ -74,7 +74,7 @@ exports.reset_realm_default_language = function () {
|
|||
exports.toggle_name_change_display = function () {
|
||||
// If user is an org admin, return. Cause org admin can change
|
||||
// name or email even name changes or email changes are disabled in org.
|
||||
if (!meta.loaded || page_params.is_admin) {
|
||||
if (page_params.is_admin) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ exports.toggle_name_change_display = function () {
|
|||
};
|
||||
|
||||
exports.toggle_email_change_display = function () {
|
||||
if (!meta.loaded || page_params.is_admin) {
|
||||
if (page_params.is_admin) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue