diff options
author | 2017-11-13 22:52:29 +0800 | |
---|---|---|
committer | 2017-11-13 22:52:34 +0800 | |
commit | 286bfde41731dbfba5328406fd72cabe43e54860 (patch) | |
tree | bd94f0902a8dc7be1cb5a4b5e29f68c4d20a46c2 /usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js | |
parent | 7cf4fbbe3644624dd5a8c640ab6041ab6a734e3f (diff) |
Fix location name issue.
Change-Id: Id36a518554a7b70d87cc0dce688d919f211ec2cd
Issue-id: USECASEUI-55
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js')
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js index 0a23df92..8917f60d 100644 --- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js +++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js @@ -382,6 +382,7 @@ function ($uibModalInstance, ServiceTemplateService, jobId, operationTitle, $q, var timerDeferred = $q.defer(); var timerPromise = timerDeferred.promise; + var responseId = '0'; var progressFun = function (responseDescriptor) { if('finished' === responseDescriptor.status || 'error' === responseDescriptor.status) { ctrl.dynamic = 100; @@ -396,11 +397,17 @@ function ($uibModalInstance, ServiceTemplateService, jobId, operationTitle, $q, ctrl.dynamic = responseDescriptor.progress; ctrl.operation = responseDescriptor.statusDescription; console.log('timer processing ......'); + responseId = responseDescriptor.responseId; + if(responseId === undefined) { + console.log('Cannot get responseId...'); + $uibModalInstance.close(''); + timerDeferred.resolve(); + } } }; var timer = $interval(function () { - ServiceTemplateService.queryVfOnboardProgress(jobId, progressFun); + ServiceTemplateService.queryVfOnboardProgress(jobId, responseId, progressFun); }, 1000); timerPromise.then(function () { |