aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-09-06 15:24:14 +0530
committeranushadasari <danush10@in.ibm.com>2019-09-06 15:24:28 +0530
commiteb3d8d9cb97f9ebde71c89c86310b78bf8fd92ba (patch)
tree546107bd3842431b6e4c6bfe43d1204676b67f94 /vid-app-common/src
parent71831035554c86ae9a60fad0b883fce7269eecfc (diff)
Add Semicolon at the end
In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line. Issue-ID: VID-607 Change-Id: I40df40c69bf7de18eeafbf640b4ebe1d0efe6def Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'vid-app-common/src')
-rw-r--r--vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
index d9bc828fe..528d3d552 100644
--- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
@@ -97,7 +97,7 @@
.catch(function (error) {
$log.error(error);
vm.errorMsg = err;
- })
+ });
};
var registerVNFNamesWatcher = function () {
@@ -252,16 +252,16 @@
source: vnf.availableVersions[0].requestInfo.source,
suppressRollback: vnf.availableVersions[0].requestInfo.suppressRollback,
requestorId: vnf.availableVersions[0].requestInfo.requestorId
- }
+ };
if(workflowType=='Update'){
requestParametersData = {
usePreload: vnf.availableVersions[0].requestParameters.usePreload
- }
+ };
}else if(workflowType=="Replace"){
requestParametersData = {
rebuildVolumeGroups: vnf.availableVersions[0].requestParameters.usePreload
- }
+ };
}else if(workflowType=="VNF In Place Software Update"){
var payloadObj = {
'existing_software_version':vm.getInternalWorkFlowParameter(workflowType, 'text', 'Existing software version').value,
@@ -270,11 +270,11 @@
};
requestParametersData = {
payload: JSON.stringify(payloadObj)
- }
+ };
}else if(workflowType=="VNF Config Update"){
requestParametersData = {
payload: vm.getInternalWorkFlowParameter("VNF Config Update", "FILE", "Attach configuration file").value
- }
+ };
}else if(workflowType=="VNF Scale Out"){
if(!moduleToScale) return null;
@@ -282,12 +282,12 @@
requestParametersData = {
userParams: moduleToScale.userParams
//,usePreload: true
- }
+ };
}else{
requestParametersData = {
userParams: []
//,usePreload: false
- }
+ };
}
}
$log.info('SchedulerWidgetCtrl:extractChangeManagementCallbackDataStr info:: workflowType '+ workflowType);
@@ -301,11 +301,11 @@
};
requestParametersData = {
payload: JSON.stringify(payloadObj)
- }
+ };
}else if(workflowType=="VNF Config Update"){
requestParametersData = {
payload: vm.getInternalWorkFlowParameter("VNF Config Update", "FILE", "Attach configuration file").value
- }
+ };
}
var data;
@@ -525,7 +525,7 @@
const nodeType = vnfsData[i]['node-type'];
if (nodeType === "generic-vnf") {
if (_.find(vnfsData[i]['related-to'], function (node) {
- return node['node-type'] === 'vserver'
+ return node['node-type'] === 'vserver';
}) !== undefined) {
vm.vnfs.push(vnfsData[i]);
}
@@ -551,7 +551,7 @@
});
_.forEach(filteredVnfs, function (vnf) {
- vm.vnfTypes.push(vnf.properties['nf-role'])
+ vm.vnfTypes.push(vnf.properties['nf-role']);
});
}
}
@@ -600,7 +600,7 @@
vm.fromVNFVersions = _.uniqBy(fromVNFVersions, 'value');
}
- })
+ });
}
};
@@ -724,7 +724,7 @@
.then(vm.loadLocalWorkFlowsParameters)
.then(function () {
vm.workflows = vm.localWorkflows;
- })
+ });
}
};
@@ -780,7 +780,7 @@
let parameters = [];
workflow.workflowInputParameters
.filter( function (param) {
- return param.soPayloadLocation === "userParams"
+ return param.soPayloadLocation === "userParams";
})
.forEach(function (param) {
let workflowParams = vm.repackAttributes(param);
@@ -809,27 +809,27 @@
soFieldName: workflowParam.soFieldName,
maxLength: '500',
pattern: '.*'
- }
+ };
};
vm.getRemoteWorkFlowParameters = function (workflow) {
if (workflow && vm.remoteWorkflowsParameters.has(workflow)) {
- return vm.remoteWorkflowsParameters.get(workflow)
+ return vm.remoteWorkflowsParameters.get(workflow);
}
return [];
};
vm.hasPatternError = function(form, itemName){
return form[itemName].$error.pattern;
- }
+ };
vm.hasAsyncFnError = function(form, itemName){
return form[itemName].$error.validateAsyncFn;
- }
+ };
vm.getIdFor = function(type, id, name){
return "internal-workflow-parameter-" + type + "-" + id + "-" + (name ? name.split(' ').join('-').toLowerCase() : "");
- }
+ };
vm.getInternalWorkFlowParameters = function (workflow, type) {
if (workflow && vm.localWorkflowsParameters.has(workflow) && vm.localWorkflowsParameters.get(workflow).filter(parameter => parameter.type==type) != []) {