Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b0ddc15e
Commit
b0ddc15e
authored
Aug 08, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
team list for profile page + mock teams
parent
1bb5a570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
public/app/features/org/partials/profile.html
+2
-2
public/app/features/org/profile_ctrl.ts
+3
-4
No files found.
public/app/features/org/partials/profile.html
View file @
b0ddc15e
...
...
@@ -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>
...
...
public/app/features/org/profile_ctrl.ts
View file @
b0ddc15e
...
...
@@ -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
;
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment