almost all PR discussion fixes

This commit is contained in:
Jimmy Zelinskie 2015-04-21 18:04:25 -04:00
parent d25cc4db9c
commit 02498d72ba
13 changed files with 200 additions and 148 deletions

View file

@ -1,5 +1,5 @@
/**
* An element which displays a dialog with the public SSH keycredentials for a trigger.
* An element which displays a dialog with the necessary credentials for a build trigger.
*/
angular.module('quay').directive('triggerCredentialsDialog', function () {
var directiveDefinitionObject = {
@ -14,7 +14,7 @@ angular.module('quay').directive('triggerCredentialsDialog', function () {
},
controller: function($scope, $element) {
var show = function() {
if (!$scope.trigger) {
if (!$scope.trigger || !$scope.counter) {
$('#triggercredentialsmodal').modal('hide');
return;
}