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
908765e0
Commit
908765e0
authored
Feb 03, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): various fixes entering edit mode after adding a new panel
parent
c465e594
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
13 deletions
+19
-13
public/app/features/dashboard/viewStateSrv.js
+5
-0
public/app/features/panel/metrics_panel_ctrl.ts
+1
-0
public/app/features/panel/panel_ctrl.ts
+8
-12
public/app/plugins/panel/singlestat/module.ts
+2
-0
public/app/plugins/panel/table/controller.ts
+1
-1
public/app/plugins/panel/text/module.ts
+2
-0
No files found.
public/app/features/dashboard/viewStateSrv.js
View file @
908765e0
...
...
@@ -103,6 +103,11 @@ function (angular, _, $) {
if
(
!
panelScope
)
{
return
;
}
if
(
!
panelScope
.
ctrl
.
editModeInitiated
)
{
panelScope
.
ctrl
.
initEditMode
();
}
this
.
enterFullscreen
(
panelScope
);
return
;
}
...
...
public/app/features/panel/metrics_panel_ctrl.ts
View file @
908765e0
...
...
@@ -41,6 +41,7 @@ class MetricsPanelCtrl extends PanelCtrl {
}
initEditMode
()
{
super
.
initEditMode
();
this
.
addEditorTab
(
'Metrics'
,
'public/app/partials/metrics.html'
);
this
.
addEditorTab
(
'Time range'
,
'public/app/features/panel/partials/panelTime.html'
);
this
.
datasources
=
this
.
datasourceSrv
.
getMetricSources
();
...
...
public/app/features/panel/panel_ctrl.ts
View file @
908765e0
...
...
@@ -63,12 +63,6 @@ export class PanelCtrl {
}
editPanel
()
{
if
(
!
this
.
editModeInitiated
)
{
this
.
editorTabs
=
[];
this
.
addEditorTab
(
'General'
,
'public/app/partials/panelgeneral.html'
);
this
.
initEditMode
();
}
this
.
changeView
(
true
,
true
);
}
...
...
@@ -77,7 +71,9 @@ export class PanelCtrl {
}
initEditMode
()
{
return
;
this
.
editorTabs
=
[];
this
.
addEditorTab
(
'General'
,
'public/app/partials/panelgeneral.html'
);
this
.
editModeInitiated
=
true
;
}
addEditorTab
(
title
,
directiveFn
,
index
?)
{
...
...
@@ -166,12 +162,12 @@ export class PanelCtrl {
});
}
sharePanel
()
{
var
shareScope
=
this
.
$scope
.
$new
();
shareScope
.
panel
=
this
.
panel
;
shareScope
.
dashboard
=
this
.
dashboard
;
sharePanel
()
{
var
shareScope
=
this
.
$scope
.
$new
();
shareScope
.
panel
=
this
.
panel
;
shareScope
.
dashboard
=
this
.
dashboard
;
this
.
publishAppEvent
(
'show-modal'
,
{
this
.
publishAppEvent
(
'show-modal'
,
{
src
:
'public/app/features/dashboard/partials/shareModal.html'
,
scope
:
shareScope
});
...
...
public/app/plugins/panel/singlestat/module.ts
View file @
908765e0
...
...
@@ -32,6 +32,8 @@ class SingleStatPanel extends PanelDirective {
$panelContainer
=
elem
.
parents
(
'.panel-container'
);
firstRender
=
false
;
hookupDrilldownLinkTooltip
();
}
else
{
return
;
}
}
...
...
public/app/plugins/panel/table/controller.ts
View file @
908765e0
...
...
@@ -57,7 +57,7 @@ export class TablePanelCtrl extends MetricsPanelCtrl {
initEditMode
()
{
super
.
initEditMode
();
this
.
addEditorTab
(
'Options'
,
tablePanelEditor
,
1
);
this
.
addEditorTab
(
'Options'
,
tablePanelEditor
,
2
);
}
getExtendedMenu
()
{
...
...
public/app/plugins/panel/text/module.ts
View file @
908765e0
...
...
@@ -21,8 +21,10 @@ export class TextPanelCtrl extends PanelCtrl {
}
initEditMode
()
{
super
.
initEditMode
();
this
.
icon
=
'fa fa-text-width'
;
this
.
addEditorTab
(
'Options'
,
'public/app/plugins/panel/text/editor.html'
);
this
.
editorTabIndex
=
1
;
}
refresh
()
{
...
...
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