dashboard: rename refreshUserInfo to refreshProfile

This commit is contained in:
Girish Ramakrishnan
2024-02-26 12:33:52 +01:00
parent d7596beaf3
commit 3196864f0d
3 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -101,7 +101,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
return;
}
Client.refreshUserInfo();
Client.refreshProfile();
$('#twoFactorAuthenticationEnableModal').modal('hide');
});
@@ -123,7 +123,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
return;
}
Client.refreshUserInfo();
Client.refreshProfile();
$('#twoFactorAuthenticationDisableModal').modal('hide');
});
@@ -180,7 +180,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
function done(error) {
if (error) return console.error('Unable to change avatar.', error);
Client.refreshUserInfo(function (error) {
Client.refreshProfile(function (error) {
if (error) return console.error(error);
$('#avatarChangeModal').modal('hide');
@@ -394,7 +394,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
return;
}
Client.refreshUserInfo();
Client.refreshProfile();
$scope.emailChange.reset();
$('#emailChangeModal').modal('hide');
@@ -452,7 +452,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
}
// update user info in the background
Client.refreshUserInfo();
Client.refreshProfile();
$scope.fallbackEmailChange.reset();
$('#fallbackEmailChangeModal').modal('hide');
@@ -600,7 +600,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
}
// update user info in the background
Client.refreshUserInfo();
Client.refreshProfile();
$scope.displayNameChange.reset();
$('#displayNameChangeModal').modal('hide');
@@ -702,7 +702,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
Client.onReady(function () {
$scope.appPassword.refresh();
$scope.tokens.refresh();
Client.refreshUserInfo(); // 2fa status might have changed by admin
Client.refreshProfile(); // 2fa status might have changed by admin
$translate.onReady(function () {
var usedLang = $translate.use() || $translate.fallbackLanguage();