Better empty messages on billing, prototype and application managers. Also properly handles the 404 for the invoices manager.

This commit is contained in:
Joseph Schorr 2015-04-09 16:25:10 -04:00
parent 3a2f271362
commit dddab60058
4 changed files with 27 additions and 6 deletions

View file

@ -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. 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> </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> <thead>
<td>Application Name</td> <td>Application Name</td>
<td>Application URI</td> <td>Application URI</td>

View file

@ -1,11 +1,14 @@
<div class="billing-invoices-element"> <div class="billing-invoices-element">
<div class="cor-loader" ng-show="loading"></div> <div class="cor-loader" ng-show="loading"></div>
<div ng-show="!loading && !invoices"> <div class="empty" ng-if="!loading && !invoices.length">
No invoices have been created <div class="empty-primary-msg">No billing invoices found.</div>
</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"> <table class="co-table">
<thead> <thead>
<td>Billing Date/Time</td> <td>Billing Date/Time</td>

View file

@ -19,7 +19,14 @@
existing repositories. existing repositories.
</div> </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> <thead>
<td> <td>
<span class="context-tooltip" <span class="context-tooltip"

View file

@ -30,6 +30,9 @@ angular.module('quay').directive('billingInvoices', function () {
ApiService.listInvoices($scope.organization).then(function(resp) { ApiService.listInvoices($scope.organization).then(function(resp) {
$scope.invoices = resp.invoices; $scope.invoices = resp.invoices;
$scope.loading = false; $scope.loading = false;
}, function() {
$scope.invoices = [];
$scope.loading = false;
}); });
}; };