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
487fd12d
Commit
487fd12d
authored
Nov 15, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: minor update
parent
159c5cdb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
+3
-1
public/app/features/dashboard/dashgrid/GeneralTab.tsx
+1
-4
public/app/features/dashboard/dashgrid/PanelEditor.tsx
+1
-1
public/app/features/panel/GeneralTabCtrl.ts
+0
-1
No files found.
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
View file @
487fd12d
...
...
@@ -4,7 +4,7 @@ import { FadeIn } from 'app/core/components/Animations/FadeIn';
interface
Props
{
children
:
JSX
.
Element
;
main
:
EditorToolBarView
;
main
?
:
EditorToolBarView
;
toolbarItems
:
EditorToolBarView
[];
}
...
...
@@ -75,11 +75,13 @@ export class EditorTabBody extends PureComponent<Props, State> {
return
(
<>
{
main
&&
(
<
div
className=
"toolbar"
>
{
this
.
renderMainSelection
(
main
)
}
<
div
className=
"gf-form--grow"
/>
{
toolbarItems
.
map
(
item
=>
this
.
renderButton
(
item
))
}
</
div
>
)
}
<
div
className=
"panel-editor__scroll"
>
<
CustomScrollbar
autoHide=
{
false
}
>
<
div
className=
"panel-editor__content"
>
...
...
public/app/features/dashboard/dashgrid/GeneralTab.tsx
View file @
487fd12d
...
...
@@ -4,11 +4,9 @@ import { getAngularLoader, AngularComponent } from 'app/core/services/AngularLoa
import
{
EditorTabBody
}
from
'./EditorTabBody'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
interface
Props
{
panel
:
PanelModel
;
dashboard
:
DashboardModel
;
}
export
class
GeneralTab
extends
PureComponent
<
Props
>
{
...
...
@@ -24,14 +22,13 @@ export class GeneralTab extends PureComponent<Props> {
return
;
}
const
{
panel
,
dashboard
}
=
this
.
props
;
const
{
panel
}
=
this
.
props
;
const
loader
=
getAngularLoader
();
const
template
=
'<panel-general-tab />'
;
const
scopeProps
=
{
ctrl
:
{
panel
:
panel
,
dashboard
:
dashboard
,
},
};
...
...
public/app/features/dashboard/dashgrid/PanelEditor.tsx
View file @
487fd12d
...
...
@@ -82,7 +82,7 @@ export class PanelEditor extends PureComponent<PanelEditorProps> {
</
button
>
</
div
>
{
activeTab
===
'general'
&&
<
GeneralTab
panel=
{
panel
}
dashboard=
{
dashboard
}
/>
}
{
activeTab
===
'general'
&&
<
GeneralTab
panel=
{
panel
}
/>
}
{
activeTab
===
'queries'
&&
<
QueriesTab
panel=
{
panel
}
dashboard=
{
dashboard
}
/>
}
{
activeTab
===
'visualization'
&&
(
<
VisualizationTab
panel=
{
panel
}
dashboard=
{
dashboard
}
plugin=
{
plugin
}
onTypeChanged=
{
onTypeChanged
}
/>
...
...
public/app/features/panel/GeneralTabCtrl.ts
View file @
487fd12d
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardModel
}
from
'../dashboard/dashboard_model'
;
export
class
GeneralTabCtrl
{
panelCtrl
:
any
;
...
...
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