diff options
author | 2017-11-14 00:48:49 +0000 | |
---|---|---|
committer | 2017-11-14 00:48:49 +0000 | |
commit | 05c280ba974ead95e29d367a21ab781a1cfb657e (patch) | |
tree | e378ffdf98bd0ab8dec0291c452bdc28e59bbaa3 /usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js | |
parent | ca5773b60f804bb7543f569419e12dacf59f020c (diff) | |
parent | 286bfde41731dbfba5328406fd72cabe43e54860 (diff) |
Merge "Fix location name issue."
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 () { |