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
16d5df1c
Commit
16d5df1c
authored
May 03, 2019
by
Fernando Kramer
Committed by
Torkel Ödegaard
May 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PluginsList: Removed icons and updated snapshots (#16872)
Fixes #16833
parent
40b771c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
19 deletions
+1
-19
public/app/features/plugins/PluginListItem.tsx
+1
-13
public/app/features/plugins/__snapshots__/PluginListItem.test.tsx.snap
+0
-6
No files found.
public/app/features/plugins/PluginListItem.tsx
View file @
16d5df1c
...
@@ -7,24 +7,12 @@ interface Props {
...
@@ -7,24 +7,12 @@ interface Props {
const
PluginListItem
:
FC
<
Props
>
=
props
=>
{
const
PluginListItem
:
FC
<
Props
>
=
props
=>
{
const
{
plugin
}
=
props
;
const
{
plugin
}
=
props
;
let
icon
;
if
(
plugin
.
type
===
'datasource'
)
{
icon
=
'gicon gicon-datasources'
;
}
else
if
(
plugin
.
type
===
'panel'
)
{
icon
=
'icon-gf icon-gf-panel'
;
}
else
{
icon
=
'icon-gf icon-gf-apps'
;
}
return
(
return
(
<
li
className=
"card-item-wrapper"
>
<
li
className=
"card-item-wrapper"
>
<
a
className=
"card-item"
href=
{
`plugins/${plugin.id}/`
}
>
<
a
className=
"card-item"
href=
{
`plugins/${plugin.id}/`
}
>
<
div
className=
"card-item-header"
>
<
div
className=
"card-item-header"
>
<
div
className=
"card-item-type"
>
<
div
className=
"card-item-type"
>
{
plugin
.
type
}
</
div
>
<
i
className=
{
icon
}
/>
{
plugin
.
type
}
</
div
>
{
plugin
.
hasUpdate
&&
(
{
plugin
.
hasUpdate
&&
(
<
div
className=
"card-item-notice"
>
<
div
className=
"card-item-notice"
>
<
span
bs
-
tooltip=
"plugin.latestVersion"
>
Update available!
</
span
>
<
span
bs
-
tooltip=
"plugin.latestVersion"
>
Update available!
</
span
>
...
...
public/app/features/plugins/__snapshots__/PluginListItem.test.tsx.snap
View file @
16d5df1c
...
@@ -14,9 +14,6 @@ exports[`Render should render component 1`] = `
...
@@ -14,9 +14,6 @@ exports[`Render should render component 1`] = `
<div
<div
className="card-item-type"
className="card-item-type"
>
>
<i
className="icon-gf icon-gf-panel"
/>
panel
panel
</div>
</div>
</div>
</div>
...
@@ -63,9 +60,6 @@ exports[`Render should render has plugin section 1`] = `
...
@@ -63,9 +60,6 @@ exports[`Render should render has plugin section 1`] = `
<div
<div
className="card-item-type"
className="card-item-type"
>
>
<i
className="icon-gf icon-gf-panel"
/>
panel
panel
</div>
</div>
<div
<div
...
...
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