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
35c853e9
Commit
35c853e9
authored
Mar 23, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): fix for plugin logo to navbar on plugin page, #4452
parent
48113977
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
public/app/features/plugins/plugin_page_ctrl.ts
+7
-3
No files found.
public/app/features/plugins/plugin_page_ctrl.ts
View file @
35c853e9
...
@@ -16,14 +16,13 @@ export class AppPageCtrl {
...
@@ -16,14 +16,13 @@ export class AppPageCtrl {
this
.
pluginId
=
$routeParams
.
pluginId
;
this
.
pluginId
=
$routeParams
.
pluginId
;
if
(
pluginInfoCache
[
this
.
pluginId
])
{
if
(
pluginInfoCache
[
this
.
pluginId
])
{
this
.
appModel
=
pluginInfoCache
[
this
.
pluginId
]
;
this
.
initPage
(
pluginInfoCache
[
this
.
pluginId
])
;
}
else
{
}
else
{
this
.
loadPluginInfo
();
this
.
loadPluginInfo
();
}
}
}
}
loadPluginInfo
()
{
initPage
(
app
)
{
this
.
backendSrv
.
get
(
`/api/plugins/
${
this
.
pluginId
}
/settings`
).
then
(
app
=>
{
this
.
appModel
=
app
;
this
.
appModel
=
app
;
this
.
page
=
_
.
findWhere
(
app
.
includes
,
{
slug
:
this
.
$routeParams
.
slug
});
this
.
page
=
_
.
findWhere
(
app
.
includes
,
{
slug
:
this
.
$routeParams
.
slug
});
this
.
appLogoUrl
=
app
.
info
.
logos
.
small
;
this
.
appLogoUrl
=
app
.
info
.
logos
.
small
;
...
@@ -33,6 +32,11 @@ export class AppPageCtrl {
...
@@ -33,6 +32,11 @@ export class AppPageCtrl {
if
(
!
this
.
page
)
{
if
(
!
this
.
page
)
{
this
.
$rootScope
.
appEvent
(
'alert-error'
,
[
'App Page Not Found'
,
''
]);
this
.
$rootScope
.
appEvent
(
'alert-error'
,
[
'App Page Not Found'
,
''
]);
}
}
}
loadPluginInfo
()
{
this
.
backendSrv
.
get
(
`/api/plugins/
${
this
.
pluginId
}
/settings`
).
then
(
app
=>
{
this
.
initPage
(
app
);
});
});
}
}
}
}
...
...
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