ocket8888 commented on code in PR #6544:
URL: https://github.com/apache/trafficcontrol/pull/6544#discussion_r843276550
##########
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:
Yup, I just checked, and with an initialized property you can bind to
`server.profileNames[0]` without the `multiple` attribute.
--
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]