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
bc9f3a33
Commit
bc9f3a33
authored
Nov 20, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'panel-edit-in-react' of
https://github.com/grafana/grafana
into panel-edit-in-react
parents
ff87cbd4
5402a0e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
7 deletions
+29
-7
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
+8
-1
public/app/features/dashboard/utils/getPanelMenu.ts
+1
-1
public/app/plugins/panel/graph/module.ts
+3
-3
public/sass/components/_panel_editor.scss
+17
-2
No files found.
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
View file @
bc9f3a33
...
...
@@ -81,7 +81,14 @@ export class VisualizationTab extends PureComponent<Props> {
let
template
=
''
;
for
(
let
i
=
0
;
i
<
panelCtrl
.
editorTabs
.
length
;
i
++
)
{
template
+=
'<panel-editor-tab editor-tab="ctrl.editorTabs['
+
i
+
']" ctrl="ctrl"></panel-editor-tab>'
;
template
+=
`
<div class="form-section" ng-cloak>
<div class="form-section__header">{{ctrl.editorTabs[
${
i
}
].title}}</div>
<div class="form-section__body">
<panel-editor-tab editor-tab="ctrl.editorTabs[
${
i
}
]" ctrl="ctrl"></panel-editor-tab>
</div>
</div>
`
;
}
const
loader
=
getAngularLoader
();
...
...
public/app/features/dashboard/utils/getPanelMenu.ts
View file @
bc9f3a33
...
...
@@ -12,7 +12,7 @@ export const getPanelMenu = (dashboard: DashboardModel, panel: PanelModel) => {
updateLocation
({
query
:
{
panelId
:
panel
.
id
,
edit
:
false
,
edit
:
null
,
fullscreen
:
true
,
},
partial
:
true
,
...
...
public/app/plugins/panel/graph/module.ts
View file @
bc9f3a33
...
...
@@ -135,9 +135,9 @@ class GraphCtrl extends MetricsPanelCtrl {
}
onInitEditMode
()
{
this
.
addEditorTab
(
'
Axes'
,
axesEditorComponent
,
2
);
this
.
addEditorTab
(
'
Legend'
,
'public/app/plugins/panel/graph/tab_legend.html'
,
3
);
this
.
addEditorTab
(
'
Display'
,
'public/app/plugins/panel/graph/tab_display.html'
,
4
);
this
.
addEditorTab
(
'
Display options'
,
'public/app/plugins/panel/graph/tab_display.html'
);
this
.
addEditorTab
(
'
Axes'
,
axesEditorComponent
);
this
.
addEditorTab
(
'
Legend'
,
'public/app/plugins/panel/graph/tab_legend.html'
);
// if (config.alertingEnabled) {
// this.addEditorTab('Alert', alertTab, 5);
...
...
public/sass/components/_panel_editor.scss
View file @
bc9f3a33
...
...
@@ -20,11 +20,10 @@
flex-grow
:
1
;
min-width
:
0
;
display
:
flex
;
padding
:
0
5px
;
}
.panel-editor__content
{
padding
:
40px
15
px
;
padding
:
40px
20
px
;
}
.panel-in-fullscreen
{
...
...
@@ -206,3 +205,19 @@
font-size
:
$font-size-md
;
margin-bottom
:
20px
;
}
.form-section
{
margin-bottom
:
10px
;
}
.form-section__header
{
padding
:
5px
10px
;
font-size
:
$font-size-h5
;
margin-bottom
:
20px
;
background
:
$input-label-bg
;
border-radius
:
3px
;
}
.form-section__body
{
padding
:
0
10px
;
}
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