summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app
diff options
context:
space:
mode:
authorbmatt <Brian.Matt@windstream.com>2017-09-11 14:50:20 +0000
committerbmatt <Brian.Matt@windstream.com>2017-09-13 14:00:27 +0000
commit7f848fd111de13778e3d88ff6839ed2ccafd46e4 (patch)
tree9d6b20d1f8c1e93a85a619c879c6e558ebad21fe /vid-app-common/src/main/webapp/app
parent88c6547f8db69a1a354988a6449c659af536c573 (diff)
Fix for VID Service Type drop down
IS_SINGLE_OPTION_AUTO_SELECTED was defaulted to true in the parameterBlock directive which was breaking the onChange hook for VID to populate service type. Added a parameter property of isSingleOptionAutoSelected to allow overriding this value on a parameter basis. Issue-ID: VID-54 Change-Id: I74b22c0e97a23c19ceb800af27036919dafb1fea Signed-off-by: bmatt <Brian.Matt@windstream.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js3
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
index 65e15f27a..03ec788b8 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
@@ -398,7 +398,8 @@ appDS2.factory("FIELD", [ "PARAMETER", function(PARAMETER) {
id : ID.SUBSCRIBER_NAME,
type : PARAMETER.SELECT,
prompt : PROMPT.SUBSCRIBER_NAME,
- isRequired : true
+ isRequired : true,
+ isSingleOptionAutoSelected : false
},
TENANT_DISABLED : {
name : NAME.TENANT,
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js
index b6a360f46..69a0ae526 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js
@@ -247,7 +247,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) {
}
if (UtilityService.hasContents(parameter.prompt)) {
- if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1)) {
+ if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1) || !(parameter.isSingleOptionAutoSelected && parameter.optionList.length === 1)) {
html += "<option value=''>" + parameter.prompt + "</option>";
}
}