Fixed user presenter unable to show errors
This commit is contained in:
parent
12237451eb
commit
42d306734d
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,6 @@ App.Presenters.UserPresenter = function(
|
||||||
function init(params, loaded) {
|
function init(params, loaded) {
|
||||||
promise.wait(util.promiseTemplate('user'))
|
promise.wait(util.promiseTemplate('user'))
|
||||||
.then(function(template) {
|
.then(function(template) {
|
||||||
$messages = $el.find('.messages');
|
|
||||||
templates.user = template;
|
templates.user = template;
|
||||||
reinit(params, loaded);
|
reinit(params, loaded);
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
|
@ -79,6 +78,7 @@ App.Presenters.UserPresenter = function(
|
||||||
canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings,
|
canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings,
|
||||||
canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()),
|
canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()),
|
||||||
canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount}));
|
canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount}));
|
||||||
|
$messages = $el.find('.messages');
|
||||||
util.loadImagesNicely($el.find('img'));
|
util.loadImagesNicely($el.find('img'));
|
||||||
userBrowsingSettingsPresenter.render();
|
userBrowsingSettingsPresenter.render();
|
||||||
userAccountSettingsPresenter.render();
|
userAccountSettingsPresenter.render();
|
||||||
|
|
Loading…
Reference in a new issue