Commit b0ddc15e by Patrick O'Carroll

team list for profile page + mock teams

parent 1bb5a570
......@@ -32,13 +32,13 @@
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Members</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="team in ctrl.user.teams">
<td>{{team.name}}</td>
<td>{{team.email}}</td>
<td>{{team.members}}</td>
</tr>
</tbody>
</table>
......
......@@ -28,12 +28,11 @@ export class ProfileCtrl {
}
getUserTeams() {
console.log(this.backendSrv.get('/api/teams'));
this.backendSrv.get('/api/user').then(teams => {
this.user.teams = [
{ name: 'Backend', email: 'backend@grafana.com', members: 2 },
{ name: 'Frontend', email: 'frontend@grafana.com', members: 2 },
{ name: 'Ops', email: 'ops@grafana.com', members: 2 },
{ name: 'Backend', email: 'backend@grafana.com', members: 5 },
{ name: 'Frontend', email: 'frontend@grafana.com', members: 4 },
{ name: 'Ops', email: 'ops@grafana.com', members: 6 },
];
this.showTeamsList = this.user.teams.length > 1;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment