Merge branch 'master' of ssh://bitbucket.org/yackob03/quay
This commit is contained in:
commit
997a093b08
2 changed files with 26 additions and 10 deletions
|
@ -84,7 +84,7 @@ function createOrganizationTeam(ApiService, orgname, teamname, callback) {
|
||||||
'teamname': teamname
|
'teamname': teamname
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiService.updateOrganizationTeam(data, params).then(callback, function() {
|
ApiService.updateOrganizationTeam(data, params).then(callback, function(resp) {
|
||||||
bootbox.dialog({
|
bootbox.dialog({
|
||||||
"message": resp.data ? resp.data : 'The team could not be created',
|
"message": resp.data ? resp.data : 'The team could not be created',
|
||||||
"title": "Cannot create team",
|
"title": "Cannot create team",
|
||||||
|
|
|
@ -4,11 +4,16 @@ $.fn.clipboardCopy = function() {
|
||||||
clip.on('complete', function() {
|
clip.on('complete', function() {
|
||||||
// Resets the animation.
|
// Resets the animation.
|
||||||
var elem = $('#clipboardCopied')[0];
|
var elem = $('#clipboardCopied')[0];
|
||||||
|
if (!elem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
elem.classList.remove('animated');
|
elem.classList.remove('animated');
|
||||||
|
|
||||||
// Show the notification.
|
// Show the notification.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
if (!elem) { return; }
|
||||||
elem.style.display = 'inline-block';
|
elem.style.display = 'inline-block';
|
||||||
elem.classList.add('animated');
|
elem.classList.add('animated');
|
||||||
}, 10);
|
}, 10);
|
||||||
|
@ -1016,7 +1021,6 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
|
||||||
$scope.currentParentEntry = null;
|
$scope.currentParentEntry = null;
|
||||||
|
|
||||||
$scope.currentBuild = build;
|
$scope.currentBuild = build;
|
||||||
$scope.currentBuildIndex = index;
|
|
||||||
|
|
||||||
if (opt_updateURL) {
|
if (opt_updateURL) {
|
||||||
if (build) {
|
if (build) {
|
||||||
|
@ -1094,8 +1098,18 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
|
||||||
ApiService.getRepoBuildStatus(null, params, true).then(function(resp) {
|
ApiService.getRepoBuildStatus(null, params, true).then(function(resp) {
|
||||||
// Note: We use extend here rather than replacing as Angular is depending on the
|
// Note: We use extend here rather than replacing as Angular is depending on the
|
||||||
// root build object to remain the same object.
|
// root build object to remain the same object.
|
||||||
$.extend(true, $scope.builds[$scope.currentBuildIndex], resp);
|
var matchingBuilds = $.grep($scope.builds, function(elem) {
|
||||||
var currentBuild = $scope.builds[$scope.currentBuildIndex];
|
return elem['id'] == resp['id']
|
||||||
|
});
|
||||||
|
|
||||||
|
var currentBuild = matchingBuilds.length > 0 ? matchingBuilds[0] : null;
|
||||||
|
if (currentBuild) {
|
||||||
|
currentBuild = $.extend(true, currentBuild, resp);
|
||||||
|
} else {
|
||||||
|
currentBuild = resp;
|
||||||
|
$scope.builds.push(currentBuild);
|
||||||
|
}
|
||||||
|
|
||||||
checkPollTimer();
|
checkPollTimer();
|
||||||
|
|
||||||
// Load the updated logs for the build.
|
// Load the updated logs for the build.
|
||||||
|
@ -1587,6 +1601,7 @@ function UserAdminCtrl($scope, $timeout, $location, ApiService, PlanService, Use
|
||||||
|
|
||||||
$scope.cuser = jQuery.extend({}, user);
|
$scope.cuser = jQuery.extend({}, user);
|
||||||
|
|
||||||
|
if ($scope.cuser.logins) {
|
||||||
for (var i = 0; i < $scope.cuser.logins.length; i++) {
|
for (var i = 0; i < $scope.cuser.logins.length; i++) {
|
||||||
if ($scope.cuser.logins[i].service == 'github') {
|
if ($scope.cuser.logins[i].service == 'github') {
|
||||||
var githubId = $scope.cuser.logins[i].service_identifier;
|
var githubId = $scope.cuser.logins[i].service_identifier;
|
||||||
|
@ -1595,6 +1610,7 @@ function UserAdminCtrl($scope, $timeout, $location, ApiService, PlanService, Use
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.readyForPlan = function() {
|
$scope.readyForPlan = function() {
|
||||||
|
|
Reference in a new issue