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
ad744beb
Unverified
Commit
ad744beb
authored
Jun 05, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NavModel: Fixed page header ui tabs issues for some admin pages (#17444)
parent
dd52ff5a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
public/app/core/nav_model_srv.ts
+1
-1
public/app/features/admin/AdminEditOrgCtrl.ts
+1
-1
public/app/features/admin/AdminEditUserCtrl.ts
+1
-1
public/app/features/admin/AdminListOrgsCtrl.ts
+1
-1
public/app/features/admin/AdminListUsersCtrl.ts
+1
-1
public/app/features/admin/StyleGuideCtrl.ts
+1
-1
public/app/features/admin/index.ts
+1
-1
public/app/features/alerting/NotificationsEditCtrl.ts
+1
-1
public/app/features/alerting/NotificationsListCtrl.ts
+1
-1
No files found.
public/app/core/nav_model_srv.ts
View file @
ad744beb
...
...
@@ -15,7 +15,7 @@ export class NavModelSrv {
return
_
.
find
(
this
.
navItems
,
{
id
:
'cfg'
});
}
getNav
(...
args
:
string
[]
)
{
getNav
(...
args
:
Array
<
string
|
number
>
)
{
let
children
=
this
.
navItems
;
const
nav
=
{
breadcrumbs
:
[],
...
...
public/app/features/admin/AdminEditOrgCtrl.ts
View file @
ad744beb
...
...
@@ -5,7 +5,7 @@ export default class AdminEditOrgCtrl {
/** @ngInject */
constructor
(
$scope
:
any
,
$routeParams
:
any
,
backendSrv
:
BackendSrv
,
$location
:
any
,
navModelSrv
:
NavModelSrv
)
{
$scope
.
init
=
()
=>
{
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-orgs'
);
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-orgs'
,
0
);
if
(
$routeParams
.
id
)
{
$scope
.
getOrg
(
$routeParams
.
id
);
...
...
public/app/features/admin/AdminEditUserCtrl.ts
View file @
ad744beb
...
...
@@ -9,7 +9,7 @@ export default class AdminEditUserCtrl {
$scope
.
user
=
{};
$scope
.
newOrg
=
{
name
:
''
,
role
:
'Editor'
};
$scope
.
permissions
=
{};
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-users'
);
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-users'
,
0
);
$scope
.
init
=
()
=>
{
if
(
$routeParams
.
id
)
{
...
...
public/app/features/admin/AdminListOrgsCtrl.ts
View file @
ad744beb
...
...
@@ -5,7 +5,7 @@ export default class AdminListOrgsCtrl {
/** @ngInject */
constructor
(
$scope
:
any
,
backendSrv
:
BackendSrv
,
navModelSrv
:
NavModelSrv
)
{
$scope
.
init
=
()
=>
{
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-orgs'
);
$scope
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-orgs'
,
0
);
$scope
.
getOrgs
();
};
...
...
public/app/features/admin/AdminListUsersCtrl.ts
View file @
ad744beb
...
...
@@ -13,7 +13,7 @@ export default class AdminListUsersCtrl {
/** @ngInject */
constructor
(
private
$scope
:
any
,
private
backendSrv
:
BackendSrv
,
navModelSrv
:
NavModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-users'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'global-users'
,
0
);
this
.
query
=
''
;
this
.
getUsers
();
}
...
...
public/app/features/admin/StyleGuideCtrl.ts
View file @
ad744beb
...
...
@@ -11,7 +11,7 @@ export default class StyleGuideCtrl {
/** @ngInject */
constructor
(
private
$routeParams
:
any
,
private
backendSrv
:
BackendSrv
,
navModelSrv
:
NavModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'styleguide'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'styleguide'
,
0
);
this
.
theme
=
config
.
bootData
.
user
.
lightTheme
?
'light'
:
'dark'
;
}
...
...
public/app/features/admin/index.ts
View file @
ad744beb
...
...
@@ -13,7 +13,7 @@ class AdminSettingsCtrl {
/** @ngInject */
constructor
(
$scope
:
any
,
backendSrv
:
BackendSrv
,
navModelSrv
:
NavModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'server-settings'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'admin'
,
'server-settings'
,
0
);
backendSrv
.
get
(
'/api/admin/settings'
).
then
((
settings
:
any
)
=>
{
$scope
.
settings
=
settings
;
...
...
public/app/features/alerting/NotificationsEditCtrl.ts
View file @
ad744beb
...
...
@@ -32,7 +32,7 @@ export class AlertNotificationEditCtrl {
private
$templateCache
:
any
,
navModelSrv
:
NavModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'alerting'
,
'channels'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'alerting'
,
'channels'
,
0
);
this
.
isNew
=
!
this
.
$routeParams
.
id
;
this
.
getFrequencySuggestion
=
()
=>
{
...
...
public/app/features/alerting/NotificationsListCtrl.ts
View file @
ad744beb
...
...
@@ -8,7 +8,7 @@ export class AlertNotificationsListCtrl {
/** @ngInject */
constructor
(
private
backendSrv
:
BackendSrv
,
navModelSrv
:
NavModelSrv
)
{
this
.
loadNotifications
();
this
.
navModel
=
navModelSrv
.
getNav
(
'alerting'
,
'channels'
);
this
.
navModel
=
navModelSrv
.
getNav
(
'alerting'
,
'channels'
,
0
);
}
loadNotifications
()
{
...
...
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