diff --git a/lib/molecules/admin-bar/admin-bar.controller.js b/lib/molecules/admin-bar/admin-bar.controller.js index a591a7a..350c8e3 100644 --- a/lib/molecules/admin-bar/admin-bar.controller.js +++ b/lib/molecules/admin-bar/admin-bar.controller.js @@ -61,6 +61,10 @@ function lnMAdminBarController($log, $rootScope, $scope, $cookies, $timeout, $el vm.lnLogoutUrl = response.data.logout_url; vm.lnEditPageUrl = response.data.edit_page_url; vm.lnNewItemTypes = response.data.post_types; + vm.lnUserNicename = angular.isDefined( response.data.nicename ) ? response.data.nicename : ''; + vm.lnUserDisplayName = angular.isDefined( response.data.display_name ) ? response.data.display_name : ''; + vm.lnUserFirstName = angular.isDefined( response.data.first_name ) ? response.data.first_name : ''; + vm.lnUserLastName = angular.isDefined( response.data.last_name ) ? response.data.last_name : ''; _enableAdminBar(); } diff --git a/package.json b/package.json index 8ddfc06..8392e31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ln-patternlab", - "version": "0.1.14", + "version": "0.1.15", "description": "An AngularJS module for Lean Patterns.", "author": "Moxie (https://getmoxied.net)", "main": "index.js",