mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
frontend fixes
This commit is contained in:
parent
07ec00641f
commit
5a6c04e3b0
@ -23,13 +23,12 @@ function (angular, _, $, config) {
|
|||||||
//startsWith: config.appSubUrl + '/dashboard/',
|
//startsWith: config.appSubUrl + '/dashboard/',
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.menu.push({
|
|
||||||
text: "Data Sources",
|
|
||||||
icon: "fa fa-database",
|
|
||||||
href: $scope.getUrl("/account/datasources"),
|
|
||||||
});
|
|
||||||
|
|
||||||
if ($scope.grafana.user.accountRole === 'Admin') {
|
if ($scope.grafana.user.accountRole === 'Admin') {
|
||||||
|
$scope.menu.push({
|
||||||
|
text: "Data Sources",
|
||||||
|
icon: "fa fa-database",
|
||||||
|
href: $scope.getUrl("/account/datasources"),
|
||||||
|
});
|
||||||
$scope.menu.push({
|
$scope.menu.push({
|
||||||
text: "Account", href: $scope.getUrl("/account"),
|
text: "Account", href: $scope.getUrl("/account"),
|
||||||
requireRole: "Admin",
|
requireRole: "Admin",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<button class="btn-login-tab" ng-click="loginMode = true;" ng-class="{active: loginMode}">
|
<button class="btn-login-tab" ng-click="loginMode = true;" ng-class="{active: loginMode}">
|
||||||
Log in
|
Log in
|
||||||
</button>
|
</button>
|
||||||
<button class="btn-login-tab" ng-click="loginMode = false;" ng-class="{active: !loginMode}" ng-if="!disableUserSignUp">
|
<button class="btn-login-tab" ng-click="loginMode = false;" ng-class="{active: !loginMode}" ng-show="!disableUserSignUp">
|
||||||
Sign up
|
Sign up
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user