ocket8888 commented on code in PR #6544:
URL: https://github.com/apache/trafficcontrol/pull/6544#discussion_r843280363
##########
traffic_portal/app/src/common/modules/form/server/form.server.tpl.html:
##########
@@ -112,11 +112,11 @@
<label for="profile" ng-class="{'has-error':
hasError(serverForm.profile)}">Profile *</label>
<div ng-class="{'has-error': hasError(serverForm.profile),
'has-feedback': hasError(serverForm.profile)}">
- <select id="profile" name="profile" class="form-control"
ng-model="server.profileId" ng-options="profile.id as profile.name for profile
in profiles" required>
+ <select id="profile" name="profile" class="form-control"
ng-model="server.profileNames" multiple ng-options="profile.name as
profile.name for profile in profiles" required>
Review Comment:
Nah. It'll do that if you don't get rid of the `multiple` attribute. I just
tested it, it works fine, sends `["selected value"]` as expected. Check out
https://github.com/rimashah25/trafficcontrol/pull/5
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]