mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -02:30
* API returns s, not ms! resolves #1250 * License - fix mixed tabs/spaces, move save successful message
This commit is contained in:
@@ -62,9 +62,9 @@ export default
|
||||
}
|
||||
});
|
||||
};
|
||||
var calcDaysRemaining = function(ms){
|
||||
var calcDaysRemaining = function(seconds){
|
||||
// calculate the number of days remaining on the license
|
||||
var duration = moment.duration(ms);
|
||||
var duration = moment.duration(seconds, 'seconds');
|
||||
return duration.days();
|
||||
};
|
||||
|
||||
|
||||
@@ -118,8 +118,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="License-submit--container">
|
||||
<span ng-show="success == true" class="License-greenText License-submit--success pull-left">Save successful!</span>
|
||||
<button ng-click="submit()" class="btn btn-success pull-right" ng-disabled="newLicense.file.license_key == null || newLicense.eula == null">Submit</button>
|
||||
<span ng-show="success == true" class="License-greenText License-submit--success pull-right">Save successful!</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user