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
17517703
Unverified
Commit
17517703
authored
Nov 27, 2019
by
Hugo Häggmark
Committed by
GitHub
Nov 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Fixes templateSrv is undefined for plugins that do not use @@ngInject (#20696)
Fixes #20662
parent
29d27fba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
public/app/features/panel/panel_ctrl.ts
+6
-8
No files found.
public/app/features/panel/panel_ctrl.ts
View file @
17517703
import
_
from
'lodash'
;
import
{
sanitize
,
escapeHtml
}
from
'app/core/utils/text'
;
import
{
escapeHtml
,
sanitize
}
from
'app/core/utils/text'
;
import
config
from
'app/core/config'
;
import
{
profiler
}
from
'app/core/core'
;
import
{
Emitter
}
from
'app/core/core'
;
import
{
Emitter
,
profiler
}
from
'app/core/core'
;
import
getFactors
from
'app/core/utils/factors'
;
import
{
duplicatePanel
,
removePanel
,
calculateInnerPanelHeight
,
copyPanel
as
copyPanelUtil
,
duplicatePanel
,
editPanelJson
as
editPanelJsonUtil
,
removePanel
,
sharePanel
as
sharePanelUtil
,
calculateInnerPanelHeight
,
}
from
'app/features/dashboard/utils/panel'
;
import
{
GRID_COLUMN_COUNT
}
from
'app/core/constants'
;
import
{
auto
}
from
'angular'
;
import
{
TemplateSrv
}
from
'../templating/template_srv'
;
import
{
getPanelLinksSupplier
}
from
'./panellinks/linkSuppliers'
;
import
{
renderMarkdown
,
AppEvent
,
PanelEvents
,
PanelPluginMeta
}
from
'@grafana/data'
;
import
{
AppEvent
,
PanelEvents
,
PanelPluginMeta
,
renderMarkdown
}
from
'@grafana/data'
;
import
{
getLocationSrv
}
from
'@grafana/runtime'
;
export
class
PanelCtrl
{
...
...
@@ -39,7 +38,6 @@ export class PanelCtrl {
timing
:
any
;
maxPanelsPerRowOptions
:
number
[];
/** @ngInject */
constructor
(
$scope
:
any
,
$injector
:
auto
.
IInjectorService
)
{
this
.
$injector
=
$injector
;
this
.
$location
=
$injector
.
get
(
'$location'
);
...
...
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