always refetch license config

see: #4931
This commit is contained in:
Ryan Petrello 2017-02-23 12:21:13 -05:00
parent e1c2a06246
commit b7e48c437d
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ export default
$scope.fileName = N_("No file selected.");
$scope.title = $rootScope.licenseMissing ? ("Tower " + i18n._("License")) : i18n._("License Management");
Wait('start');
ConfigService.delete();
ConfigService.getConfig().then(function(config){
$scope.license = config;
$scope.license.version = config.version.split('-')[0];

View File

@ -44,6 +44,7 @@ describe('Controller: LicenseController', () => {
// Suites
it('should GET a config object on initialization', ()=>{
expect(ConfigService.delete).toHaveBeenCalled();
expect(ConfigService.getConfig).toHaveBeenCalled();
});