Fix title and description for the new page

This commit is contained in:
Joseph Schorr 2013-12-06 19:30:55 -05:00
parent a0f9e1646a
commit 17372b89be

View file

@ -1383,7 +1383,7 @@ function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, Plan
}
function OrgMemberLogsCtrl($scope, $routeParams, $timeout, Restangular) {
function OrgMemberLogsCtrl($scope, $routeParams, $rootScope, $timeout, Restangular) {
var orgname = $routeParams.orgname;
var membername = $routeParams.membername;
@ -1395,6 +1395,9 @@ function OrgMemberLogsCtrl($scope, $routeParams, $timeout, Restangular) {
var checkReady = function() {
$scope.loading = !$scope.organization || !$scope.memberInfo;
if (!$scope.loading) {
$rootScope.title = 'Logs for ' + $scope.memberInfo.username + ' (' + $scope.orgname + ')';
$rootScope.description = 'Shows all the actions of ' + $scope.memberInfo.username +
' under organization ' + $scope.orgname;
$timeout(function() {
$scope.ready = true;
});