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
a299118c
Commit
a299118c
authored
Oct 24, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:grafana/grafana into develop
parents
38f97d5c
f70fb7db
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
pkg/api/dashboard.go
+1
-1
pkg/api/index.go
+5
-5
public/app/features/dashboard/dashgrid/DashboardRow.tsx
+1
-1
No files found.
pkg/api/dashboard.go
View file @
a299118c
...
...
@@ -283,7 +283,7 @@ func addGettingStartedPanelToHomeDashboard(dash *simplejson.Json) {
"gridPos"
:
map
[
string
]
interface
{}{
"x"
:
0
,
"y"
:
3
,
"w"
:
12
,
"w"
:
24
,
"h"
:
4
,
},
})
...
...
pkg/api/index.go
View file @
a299118c
...
...
@@ -103,7 +103,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
dashboardChildNavs
:=
[]
*
dtos
.
NavLink
{
{
Text
:
"Home"
,
Url
:
setting
.
AppSubUrl
+
"/"
,
Icon
:
"fa fa-fw fa-home"
},
{
Text
:
"Playlists"
,
Id
:
"playlists"
,
Url
:
setting
.
AppSubUrl
+
"/playlists"
,
Icon
:
"fa fa-fw fa-film"
},
{
Text
:
"Snapshots"
,
Id
:
"snapshots"
,
Url
:
setting
.
AppSubUrl
+
"/dashboard/snapshots"
,
Icon
:
"icon-gf icon-gf-snapshot"
},
{
Text
:
"Snapshots"
,
Id
:
"snapshots"
,
Url
:
setting
.
AppSubUrl
+
"/dashboard/snapshots"
,
Icon
:
"icon-gf icon-gf-
fw icon-gf-
snapshot"
},
}
data
.
NavTree
=
append
(
data
.
NavTree
,
&
dtos
.
NavLink
{
...
...
@@ -190,7 +190,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
if
len
(
appLink
.
Children
)
>
0
&&
c
.
OrgRole
==
m
.
ROLE_ADMIN
{
appLink
.
Children
=
append
(
appLink
.
Children
,
&
dtos
.
NavLink
{
Divider
:
true
})
appLink
.
Children
=
append
(
appLink
.
Children
,
&
dtos
.
NavLink
{
Text
:
"Plugin Config"
,
Icon
:
"fa fa-cog"
,
Url
:
setting
.
AppSubUrl
+
"/plugins/"
+
plugin
.
Id
+
"/edit"
})
appLink
.
Children
=
append
(
appLink
.
Children
,
&
dtos
.
NavLink
{
Text
:
"Plugin Config"
,
Icon
:
"fa fa-
fw fa-
cog"
,
Url
:
setting
.
AppSubUrl
+
"/plugins/"
+
plugin
.
Id
+
"/edit"
})
}
if
len
(
appLink
.
Children
)
>
0
{
...
...
@@ -208,7 +208,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Children
:
[]
*
dtos
.
NavLink
{
{
Text
:
"Data Sources"
,
Icon
:
"icon-gf icon-gf-datasources"
,
Icon
:
"icon-gf icon-gf-
fw icon-gf-
datasources"
,
Description
:
"Add and configure data sources"
,
Id
:
"datasources"
,
Url
:
setting
.
AppSubUrl
+
"/datasources"
,
...
...
@@ -228,7 +228,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Text
:
"Plugins"
,
Id
:
"plugins"
,
Description
:
"View and configure plugins"
,
Icon
:
"icon-gf icon-gf-apps"
,
Icon
:
"icon-gf icon-gf-
fw icon-gf-
apps"
,
Url
:
setting
.
AppSubUrl
+
"/plugins"
,
Children
:
[]
*
dtos
.
NavLink
{
{
Text
:
"Panels"
,
Url
:
setting
.
AppSubUrl
+
"/plugins?type=panel"
,
Icon
:
"fa fa-fw fa-stop"
},
...
...
@@ -240,7 +240,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Text
:
"Members"
,
Id
:
"users"
,
Description
:
"Manage org members"
,
Icon
:
"icon-gf icon-gf-users"
,
Icon
:
"icon-gf icon-gf-
fw icon-gf-
users"
,
Url
:
setting
.
AppSubUrl
+
"/org/users"
,
},
{
...
...
public/app/features/dashboard/dashgrid/DashboardRow.tsx
View file @
a299118c
...
...
@@ -48,7 +48,7 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
let
text2
=
''
;
if
(
this
.
props
.
panel
.
panels
.
length
)
{
text2
=
'This will also remove '
+
this
.
props
.
panel
.
panels
.
length
+
' panels'
;
text2
=
`This will also remove row's
${
this
.
props
.
panel
.
panels
.
length
}
hidden panels`
;
}
appEvents
.
emit
(
'confirm-modal'
,
{
...
...
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