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
660c9fd4
Commit
660c9fd4
authored
Dec 16, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:grafana/grafana into develop
parents
1b3a520b
38b5d786
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
public/app/features/dashboard/dashgrid/PanelEditor.tsx
+14
-2
public/app/plugins/panel/text/module.ts
+2
-0
public/sass/components/_toolbar.scss
+2
-1
No files found.
public/app/features/dashboard/dashgrid/PanelEditor.tsx
View file @
660c9fd4
...
...
@@ -72,14 +72,26 @@ export class PanelEditor extends PureComponent<PanelEditorProps> {
render
()
{
const
{
plugin
}
=
this
.
props
;
cons
t
activeTab
=
store
.
getState
().
location
.
query
.
tab
||
'queries'
;
le
t
activeTab
=
store
.
getState
().
location
.
query
.
tab
||
'queries'
;
const
tabs
=
[
const
tabs
:
PanelEditorTab
[]
=
[
{
id
:
'queries'
,
text
:
'Queries'
},
{
id
:
'visualization'
,
text
:
'Visualization'
},
{
id
:
'advanced'
,
text
:
'Panel Options'
},
];
// handle panels that do not have queries tab
if
(
plugin
.
exports
.
PanelCtrl
)
{
if
(
!
plugin
.
exports
.
PanelCtrl
.
prototype
.
onDataReceived
)
{
// remove queries tab
tabs
.
shift
();
// switch tab
if
(
activeTab
===
'queries'
)
{
activeTab
=
'visualization'
;
}
}
}
if
(
config
.
alertingEnabled
&&
plugin
.
id
===
'graph'
)
{
tabs
.
push
({
id
:
'alert'
,
...
...
public/app/plugins/panel/text/module.ts
View file @
660c9fd4
...
...
@@ -7,6 +7,8 @@ const defaultContent = `
For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)
`
;
export
class
TextPanelCtrl
extends
PanelCtrl
{
...
...
public/sass/components/_toolbar.scss
View file @
660c9fd4
...
...
@@ -17,11 +17,12 @@
}
.toolbar__main
{
padding
:
$input-padding-y
$input-padding-x
;
padding
:
0
$input-padding-x
;
font-size
:
$font-size-md
;
line-height
:
$input-line-height
;
color
:
$input-color
;
background-color
:
$input-bg
;
height
:
$gf-form-input-height
;
border
:
$input-border
;
border-radius
:
$input-border-radius
;
display
:
flex
;
...
...
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