diff options
Diffstat (limited to 'vid-app-common')
-rw-r--r-- | vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js index 6b45a7479..b90d417bb 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js @@ -21,9 +21,9 @@ (function () { 'use strict'; - appDS2.service('changeManagementService', ['$http', '$q', 'COMPONENT', 'VIDCONFIGURATION', changeManagementService]); + appDS2.service('changeManagementService', ['$http', '$q', 'COMPONENT', 'VIDCONFIGURATION', 'featureFlags', changeManagementService]); - function changeManagementService($http, $q, COMPONENT, VIDCONFIGURATION) { + function changeManagementService($http, $q, COMPONENT, VIDCONFIGURATION, featureFlags) { this.getWorkflows = function (vnfs) { var requestVnfs = _.map(vnfs, function (vnf) { return { @@ -68,13 +68,17 @@ this.getMSOChangeManagements = function() { var deferred = $q.defer(); - $http.get(COMPONENT.GET_MSO_WORKFLOWS) - .success(function (response) { - deferred.resolve({data: response}); - }) - .error(function(data, status, headers, config) { - deferred.reject({message: data, status: status}); - }); + if(featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_GUILIN_CHANGEMG_SUBMIT_TO_SO)) { + deferred.resolve({data: []}); // no scheduler + } else { + $http.get(COMPONENT.GET_MSO_WORKFLOWS) + .success(function (response) { + deferred.resolve({data: response}); + }) + .error(function (data, status, headers, config) { + deferred.reject({message: data, status: status}); + }); + } return deferred.promise; }; |