Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lfryc committed Jan 14, 2016
1 parent ef251ec commit b90f147
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions admin-ui/app/components/app-detail/include/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ <h3>Notification activity</h3>
<td>{{ metric.$message.alert | limitTo : 15 }}{{ metric.$message.alert.length > 15 ? '&hellip;' : '' }}</td>
<td>{{ metric.ipAddress }}</td>
<td>{{ metric.totalReceivers }} receivers / {{ metric.appOpenCounter }} opened</td>
<td ng-if="metric.servedVariants < metric.totalVariants">
<!--<i class="pficon-running"></i>-->
<td ng-if="!metric.$deliveryStatus">
<span class="pficon spinner spinner-sm spinner-inline"></span>
Pending...</td>
<td ng-if="metric.servedVariants == metric.totalVariants && metric.deliveryFailed != true" class="success"><i class="fa fa-check"></i> Succeeded</td>
<td ng-if="metric.servedVariants == metric.totalVariants && metric.deliveryFailed == true" class="danger">
<td ng-if="metric.$deliveryStatus && !metric.$deliveryFailed" class="success"><i class="fa fa-check"></i> Succeeded</td>
<td ng-if="metric.$deliveryStatus && metric.$deliveryFailed" class="danger">
<span class="pficon-layered">
<span class="pficon pficon-error-octagon"></span>
<span class="pficon pficon-error-exclamation"></span>
Expand Down
7 changes: 3 additions & 4 deletions admin-ui/app/scripts/endpoints/metricsEndpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ upsServices.factory('metricsEndpoint', function ($resource, $q, apiPrefix) {
var deferred = $q.defer();
this.application({id: applicationId, page: pageNo - 1, per_page: perPage, sort:'desc', search: searchString}, function (data, responseHeaders) {
angular.forEach(data, function (metric) {
angular.forEach(metric.variantInformations, function (variant) {
if (!variant.deliveryStatus) {
metric.deliveryFailed = true;
}
metric.$deliveryStatus = (metric.servedVariants === metric.totalVariants);
metric.$deliveryFailed = metric.variantInformations.some(function( variantMetric ) {
return variantMetric.reason;
});
});
deferred.resolve({
Expand Down

0 comments on commit b90f147

Please sign in to comment.