updates list project members username.

This commit is contained in:
kunw 2016-04-21 18:24:40 +08:00
parent c4e3160711
commit 5187c7e1dc
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<td style="padding: 15px;">user1</td> <td style="padding: 15px;">//vm.username//</td>
<td><switch-roles roles="vm.roles" edit-mode="vm.editMode" user-id="vm.userId" role-id="vm.roleId"></switch-roles></td> <td><switch-roles roles="vm.roles" edit-mode="vm.editMode" user-id="vm.userId" role-id="vm.roleId"></switch-roles></td>
<td> <td>
<a href="javascript:;" ng-click="vm.update({roleId: vm.roleId})"> <a href="javascript:;" ng-click="vm.update({roleId: vm.roleId})">

View File

@ -38,6 +38,7 @@
'restrict': 'A', 'restrict': 'A',
'templateUrl': '/static/ng/resources/js/components/project-member/edit-project-member.directive.html', 'templateUrl': '/static/ng/resources/js/components/project-member/edit-project-member.directive.html',
'scope': { 'scope': {
'username': '=',
'userId': '=', 'userId': '=',
'roleId': '=' 'roleId': '='
}, },

View File

@ -17,7 +17,7 @@
<th width="30%">Username</th><th width="40%">Role</th><th width="30%">Operation</th> <th width="30%">Username</th><th width="40%">Role</th><th width="30%">Operation</th>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="pr in vm.projectMembers" edit-project-member user-id="pr.id" role-id="pr.roleId"></tr> <tr ng-repeat="pr in vm.projectMembers" edit-project-member username="pr.username" user-id="pr.id" role-id="pr.roleId"></tr>
</tbody> </tbody>
</table> </table>
</div> </div>