mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: move app.alert back into the conditionals
This commit is contained in:
@@ -774,6 +774,7 @@ app.cacheBuster = null;
|
||||
app.removeAlert('email_confirm');
|
||||
ajaxify.go('user/' + app.user.userslug + '/edit/email');
|
||||
};
|
||||
app.alert(msg);
|
||||
} else if (!app.user['email:confirmed'] && !app.user.isEmailConfirmSent) {
|
||||
msg.message = err ? err.message : '[[error:email-not-confirmed]]';
|
||||
msg.clickfn = function () {
|
||||
@@ -785,11 +786,11 @@ app.cacheBuster = null;
|
||||
app.alertSuccess('[[notifications:email-confirm-sent]]');
|
||||
});
|
||||
};
|
||||
app.alert(msg);
|
||||
} else if (!app.user['email:confirmed'] && app.user.isEmailConfirmSent) {
|
||||
msg.message = '[[error:email-not-confirmed-email-sent]]';
|
||||
}
|
||||
|
||||
app.alert(msg);
|
||||
}
|
||||
};
|
||||
|
||||
app.parseAndTranslate = function (template, blockName, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user