Skip to content

Commit

Permalink
Quota UI: Show message that System wide default cannot be removed fro…
Browse files Browse the repository at this point in the history
…m an organization (PROJQUAY-3658) (#1282)
  • Loading branch information
Sunandadadi authored Apr 25, 2022
1 parent 9ac3000 commit 03269ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/js/directives/ui/quota-management-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ angular.module('quay').directive('quotaManagementView', function () {
}

$scope.deleteOrgQuota = function() {
if ($scope.using_default_config) {
bootbox.alert("The system default configuration cannot be removed.");
return;
}


bootbox.confirm('Are you sure you want to delete quota for this organization? ' +
'When you remove the quota storage, users can consume arbitrary amount of storage resources.',
function(result) {
Expand Down

0 comments on commit 03269ed

Please sign in to comment.