Browse Source

team list for profile page + mock teams

Patrick O'Carroll 7 years ago
parent
commit
b0ddc15e1a

+ 2 - 2
public/app/features/org/partials/profile.html

@@ -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>

+ 3 - 4
public/app/features/org/profile_ctrl.ts

@@ -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;
     });