From 4b64236d8eb2b0742a5168ec0dce1ebebb32f078 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 7 Apr 2015 18:38:58 -0400 Subject: [PATCH] Get new docker file build action working --- static/directives/new-header-bar.html | 8 +++++++- static/js/directives/ui/header-bar.js | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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; }