You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/04/05 21:29:54 UTC

[GitHub] [trafficcontrol] shamrickus commented on a diff in pull request #6544: Layered profile `servers/` API {GET, POST, PUT & DELETE}

shamrickus commented on code in PR #6544:
URL: https://github.com/apache/trafficcontrol/pull/6544#discussion_r843278045


##########
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:
   If you do that server.profileNames will be:
   ```
   [
     {
       "0": "selected value"
     }
   ]
   ```
   instead of
   ```
   [
     "selected value"
   ]
   ```



-- 
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: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org