1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 22:03:21 +00:00

do api calls on viewContentLoaded

This commit is contained in:
Kyle Spearrin
2017-03-07 00:36:27 -05:00
parent 22299c03cd
commit 3d273f041e
4 changed files with 47 additions and 40 deletions

View File

@@ -6,11 +6,12 @@ angular
vm.bodyClass = '';
vm.searchVaultText = null;
vm.version = appSettings.version;
vm.userProfile = authService.getUserProfile();
$scope.currentYear = new Date().getFullYear();
$scope.$on('$viewContentLoaded', function () {
vm.userProfile = authService.getUserProfile();
if ($.AdminLTE) {
if ($.AdminLTE.layout) {
$.AdminLTE.layout.fix();