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 2020/02/13 15:47:10 UTC
[GitHub] [trafficcontrol] mhoppa commented on a change in pull request
#4394: TP: adds configurability (show/hide columns) to the parameters and
users tables
mhoppa commented on a change in pull request #4394: TP: adds configurability (show/hide columns) to the parameters and users tables
URL: https://github.com/apache/trafficcontrol/pull/4394#discussion_r378936950
##########
File path: traffic_portal/app/src/common/modules/table/capabilityUsers/TableCapabilityUsersController.js
##########
@@ -17,11 +17,14 @@
* under the License.
*/
-var TableCapabilityUsersController = function(capability, capUsers, $scope, $state, locationUtils) {
+var TableCapabilityUsersController = function(capability, capUsers, $controller, $scope, $state, locationUtils) {
- $scope.capability = capability;
+ // extends the TableUsersController to inherit common methods
+ angular.extend(this, $controller('TableUsersController', { users: capUsers, $scope: $scope }));
- $scope.capUsers = capUsers;
+ let capUsersTable;
+
+ $scope.capability = capability[0];
Review comment:
more of just for my understanding but why did this go to indexing of the capability when setting it in the scope?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services