fix indefinite wait on no license user login

This commit is contained in:
John Mitchell
2015-06-12 13:54:26 -04:00
parent d076be8b8b
commit 723ec44846

View File

@@ -16,7 +16,7 @@
export function LicenseController(ClearScope, $location, $rootScope, $compile, $filter, GenerateForm, Rest, Alert, export function LicenseController(ClearScope, $location, $rootScope, $compile, $filter, GenerateForm, Rest, Alert,
GetBasePath, ProcessErrors, FormatDate, Prompt, Empty, LicenseForm, IsAdmin, CreateDialog, CheckLicense, GetBasePath, ProcessErrors, FormatDate, Prompt, Empty, LicenseForm, IsAdmin, CreateDialog, CheckLicense,
TextareaResize, $scope) { TextareaResize, $scope, Wait) {
ClearScope(); ClearScope();
@@ -178,6 +178,7 @@ export function LicenseController(ClearScope, $location, $rootScope, $compile, $
}); });
} }
}); });
Wait("stop");
}); });
CheckLicense.GetLicense('LicenseDataReady', $scope); CheckLicense.GetLicense('LicenseDataReady', $scope);
@@ -185,4 +186,4 @@ export function LicenseController(ClearScope, $location, $rootScope, $compile, $
LicenseController.$inject = ['ClearScope', '$location', '$rootScope', '$compile', '$filter', 'GenerateForm', 'Rest', 'Alert', LicenseController.$inject = ['ClearScope', '$location', '$rootScope', '$compile', '$filter', 'GenerateForm', 'Rest', 'Alert',
'GetBasePath', 'ProcessErrors', 'FormatDate', 'Prompt', 'Empty', 'LicenseForm', 'IsAdmin', 'CreateDialog', 'GetBasePath', 'ProcessErrors', 'FormatDate', 'Prompt', 'Empty', 'LicenseForm', 'IsAdmin', 'CreateDialog',
'CheckLicense', 'TextareaResize', '$scope']; 'CheckLicense', 'TextareaResize', '$scope', "Wait"];