Fix title and description for the new page
This commit is contained in:
parent
a0f9e1646a
commit
17372b89be
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Reference in a new issue