Better empty messages on billing, prototype and application managers. Also properly handles the 404 for the invoices manager.
This commit is contained in:
parent
3a2f271362
commit
dddab60058
4 changed files with 27 additions and 6 deletions
|
@ -15,7 +15,15 @@
|
|||
The OAuth Applications panel allows organizations to define custom OAuth applications that can be used by internal or external customers to access <span class="registry-name"></span> data on behalf of the customers. More information about the <span class="registry-name"></span> API can be found by contacting support.
|
||||
</div>
|
||||
|
||||
<table class="co-table">
|
||||
<div class="empty" ng-if="!applications.length">
|
||||
<div class="empty-primary-msg">No OAuth applications defined.</div>
|
||||
<div class="empty-secondary-msg">
|
||||
Click the "Create New Application" button above to create a new OAuth application under
|
||||
this organization.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="co-table" ng-show="applications.length">
|
||||
<thead>
|
||||
<td>Application Name</td>
|
||||
<td>Application URI</td>
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
<div class="billing-invoices-element">
|
||||
<div class="cor-loader" ng-show="loading"></div>
|
||||
|
||||
<div ng-show="!loading && !invoices">
|
||||
No invoices have been created
|
||||
</div>
|
||||
<div class="empty" ng-if="!loading && !invoices.length">
|
||||
<div class="empty-primary-msg">No billing invoices found.</div>
|
||||
<div class="empty-secondary-msg">
|
||||
This account has not been billed by <span class="registry-name"></span>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-show="!loading && invoices">
|
||||
<div ng-show="!loading && invoices.length">
|
||||
<table class="co-table">
|
||||
<thead>
|
||||
<td>Billing Date/Time</td>
|
||||
|
|
|
@ -19,7 +19,14 @@
|
|||
existing repositories.
|
||||
</div>
|
||||
|
||||
<table class="co-table">
|
||||
<div class="empty" ng-if="!prototypes.length">
|
||||
<div class="empty-primary-msg">No default permissions defined.</div>
|
||||
<div class="empty-secondary-msg">
|
||||
Click the "Create Default Permission" button above to create a new default permission.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="co-table" ng-show="prototypes.length">
|
||||
<thead>
|
||||
<td>
|
||||
<span class="context-tooltip"
|
||||
|
|
|
@ -30,6 +30,9 @@ angular.module('quay').directive('billingInvoices', function () {
|
|||
ApiService.listInvoices($scope.organization).then(function(resp) {
|
||||
$scope.invoices = resp.invoices;
|
||||
$scope.loading = false;
|
||||
}, function() {
|
||||
$scope.invoices = [];
|
||||
$scope.loading = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue