Allow for configurable logo in the top left corner using ENTERPRISE_LOGO_URL parameter.

This commit is contained in:
Jake Moshenko 2014-12-12 18:25:30 -05:00
parent ea3d909477
commit 79b61e7709
3 changed files with 17 additions and 6 deletions

View file

@ -4072,7 +4072,7 @@ quayApp.directive('headerBar', function () {
restrict: 'C',
scope: {
},
controller: function($scope, $element, $location, UserService, PlanService, ApiService, NotificationService) {
controller: function($scope, $element, $location, UserService, PlanService, ApiService, NotificationService, Config) {
$scope.notificationService = NotificationService;
// Monitor any user changes and place the current user into the scope.
@ -4091,6 +4091,14 @@ quayApp.directive('headerBar', function () {
}
return "";
};
$scope.getEnterpriseLogo = function() {
if (!Config.ENTERPRISE_LOGO_URL) {
return '/static/img/quay-logo.png';
}
return Config.ENTERPRISE_LOGO_URL;
};
}
};
return directiveDefinitionObject;