Skip to content
Snippets Groups Projects
Commit 4b25f75f authored by Kyle Doherty's avatar Kyle Doherty
Browse files

no longer need these scope vars

parent faab677c
Branches
Tags
No related merge requests found
......@@ -222,17 +222,9 @@ NavbarDirectives.directive('mbProfileLink', [function () {
return {
restrict: 'A',
replace: true,
template: '<div mb-react-component="ProfileLink"></div>',
controller: function ($scope) {
$scope.ProfileLink = ProfileLink
$scope.userIsSuperuser = false;
$scope.$watch('user', function (user) {
if (!user) return;
// extract a couple informational pieces about user
$scope.userIsSuperuser = user.is_superuser;
});
$scope.ProfileLink = ProfileLink;
},
scope: {
context: '=',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment