mirror of
https://github.com/ansible/awx.git
synced 2026-07-28 16:39:56 -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
|
// calculate the number of days remaining on the license
|
||||||
var duration = moment.duration(ms);
|
var duration = moment.duration(seconds, 'seconds');
|
||||||
return duration.days();
|
return duration.days();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -118,8 +118,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="License-submit--container">
|
<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>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user