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
6f16f704
Unverified
Commit
6f16f704
authored
Feb 11, 2019
by
Torkel Ödegaard
Committed by
GitHub
Feb 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15354 from grafana/fix/plugin-loading-failure
Fix plugin loading failure message not being displayed
parents
ba2f698b
9485c678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
+9
-4
No files found.
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
View file @
6f16f704
...
...
@@ -68,7 +68,7 @@ export class DashboardPanel extends PureComponent<Props, State> {
// handle plugin loading & changing of plugin type
if
(
!
this
.
state
.
plugin
||
this
.
state
.
plugin
.
id
!==
pluginId
)
{
cons
t
plugin
=
config
.
panels
[
pluginId
]
||
getPanelPluginNotFound
(
pluginId
);
le
t
plugin
=
config
.
panels
[
pluginId
]
||
getPanelPluginNotFound
(
pluginId
);
// remember if this is from an angular panel
const
fromAngularPanel
=
this
.
state
.
angularPanel
!=
null
;
...
...
@@ -81,10 +81,15 @@ export class DashboardPanel extends PureComponent<Props, State> {
}
if
(
plugin
.
exports
)
{
this
.
setState
({
plugin
:
plugin
,
angularPanel
:
null
});
this
.
setState
({
plugin
,
angularPanel
:
null
});
}
else
{
plugin
.
exports
=
await
importPluginModule
(
plugin
.
module
);
this
.
setState
({
plugin
:
plugin
,
angularPanel
:
null
});
try
{
plugin
.
exports
=
await
importPluginModule
(
plugin
.
module
);
}
catch
(
e
)
{
plugin
=
getPanelPluginNotFound
(
pluginId
);
}
this
.
setState
({
plugin
,
angularPanel
:
null
});
}
}
}
...
...
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