From c1439e9e07786a46290a550304f3c9014a1b3d06 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 27 Feb 2015 10:05:19 -0800 Subject: [PATCH] Tweak for Superuser UI in projects. This will properly align the create-project button for superadmin. Change-Id: Id79c7daa66b7db559bda5a41e494f17d519cf6a3 --- src/app/projects/controller/project_list_controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/projects/controller/project_list_controller.js b/src/app/projects/controller/project_list_controller.js index 2d542a7c..f7774a65 100644 --- a/src/app/projects/controller/project_list_controller.js +++ b/src/app/projects/controller/project_list_controller.js @@ -20,9 +20,12 @@ * rather than a browse (exclusive) approach. */ angular.module('sb.projects').controller('ProjectListController', - function ($scope) { + function ($scope, isSuperuser) { 'use strict'; + // inject superuser flag to properly adjust UI. + $scope.is_superuser = isSuperuser; + // search results must be of type "project" $scope.resourceTypes = ['Project'];