From 8789327d389eaa6d26cd20c6e8c687e8148b3e55 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 10 May 2016 10:08:24 -0400 Subject: [PATCH] Changing Time Remaining + Days logic on license cntrler --- awx/ui/client/src/license/license.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/license/license.controller.js b/awx/ui/client/src/license/license.controller.js index 61ab016946..27a826a50f 100644 --- a/awx/ui/client/src/license/license.controller.js +++ b/awx/ui/client/src/license/license.controller.js @@ -6,9 +6,9 @@ export default ['Wait', '$state', '$scope', '$rootScope', '$location', 'GetBasePath', - 'Rest', 'ProcessErrors', 'CheckLicense', 'moment','$window', '$filter', + 'Rest', 'ProcessErrors', 'CheckLicense', 'moment','$window', function( Wait, $state, $scope, $rootScope, $location, GetBasePath, Rest, - ProcessErrors, CheckLicense, moment, $window, $filter){ + ProcessErrors, CheckLicense, moment, $window){ $scope.getKey = function(event){ // Mimic HTML5 spec, show filename $scope.fileName = event.target.files[0].name; @@ -66,7 +66,7 @@ export default var calcDaysRemaining = function(seconds){ // calculate the number of days remaining on the license var duration = moment.duration(seconds, 'seconds').days(); - duration = (duration!==1) ? $filter('number')(duration, 0) + ' days' : $filter('number')(duration, 0) + ' day'; + duration = (duration!==1) ? `${duration} Days` : `${duration} Day`; return duration; };