VID - Feature flag for PNF in modern UI
[vid.git] / vid-app-common / src / main / webapp / app / vid / scripts / services / asdcService.js
index eb3ea46..00a6b2a 100755 (executable)
@@ -24,7 +24,7 @@ var AsdcService = function ($http, $log, PropertyService, UtilityService, VIDCON
     var shouldExcludeMacroFromAsyncInstantiationFlow = function(serviceModel){\r
         if (DataService.getE2EService())\r
             return true;\r
-        if (!_.isEmpty(serviceModel.pnfs))\r
+        if (!_.isEmpty(serviceModel.pnfs) && !featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_EXTENDED_MACRO_PNF_CONFIG))\r
             return true;\r
         if (!_.isEmpty(serviceModel.collectionResources))\r
             return true;\r