mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
now hides team header when no teams + fix for list hidden when only one team
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<prefs-control mode="user"></prefs-control>
|
<prefs-control mode="user"></prefs-control>
|
||||||
|
|
||||||
<h3 class="page-heading">Teams</h3>
|
<h3 class="page-heading" ng-show="ctrl.showTeamsList">Teams</h3>
|
||||||
<div class="gf-form-group" ng-show="ctrl.showTeamsList">
|
<div class="gf-form-group" ng-show="ctrl.showTeamsList">
|
||||||
<table class="filter-table form-inline">
|
<table class="filter-table form-inline">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class ProfileCtrl {
|
|||||||
getUserTeams() {
|
getUserTeams() {
|
||||||
this.backendSrv.get('/api/user/teams').then(teams => {
|
this.backendSrv.get('/api/user/teams').then(teams => {
|
||||||
this.teams = teams;
|
this.teams = teams;
|
||||||
this.showTeamsList = this.teams.length > 1;
|
this.showTeamsList = this.teams.length > 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user