diff --git a/static/directives/new-header-bar.html b/static/directives/new-header-bar.html
index 847f83fc0..453462176 100644
--- a/static/directives/new-header-bar.html
+++ b/static/directives/new-header-bar.html
@@ -83,7 +83,7 @@
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
-
+
New Dockerfile Build
@@ -186,4 +186,10 @@
+
+
+
\ No newline at end of file
diff --git a/static/js/directives/ui/header-bar.js b/static/js/directives/ui/header-bar.js
index 6d332c870..330e73790 100644
--- a/static/js/directives/ui/header-bar.js
+++ b/static/js/directives/ui/header-bar.js
@@ -17,6 +17,7 @@ angular.module('quay').directive('headerBar', function () {
$scope.searchVisible = false;
$scope.currentSearchQuery = null;
$scope.searchResultState = null;
+ $scope.showBuildDialogCounter = 0;
// Monitor any user changes and place the current user into the scope.
UserService.updateUserIn($scope);
@@ -177,6 +178,14 @@ angular.module('quay').directive('headerBar', function () {
return UserService.isOrganization(namespace);
};
+ $scope.startBuild = function(context) {
+ $scope.showBuildDialogCounter++;
+ };
+
+ $scope.handleBuildStarted = function(build, context) {
+ $location.url('/repository/' + context.repository.namespace + '/' + context.repository.name + '/build/' + build.id);
+ };
+
$scope.createRobot = function(context) {
var namespace = $scope.getNamespace(context);
if (!namespace || !UserService.isNamespaceAdmin(namespace)) { return; }