Commit 7bbfb57d by Zoltán Bedi Committed by GitHub

PluginsListPage: More plugins button should open in new window (#26305)

Fixes #24622
parent 077aec46
......@@ -35,7 +35,6 @@ export class PluginListPage extends PureComponent<Props> {
const linkButton = {
href: 'https://grafana.com/plugins?utm_source=grafana_plugin_list',
title: 'Find more plugins on Grafana.com',
target: '_blank',
};
return (
......@@ -46,6 +45,7 @@ export class PluginListPage extends PureComponent<Props> {
searchQuery={searchQuery}
setSearchQuery={query => setPluginsSearchQuery(query)}
linkButton={linkButton}
target="_blank"
/>
{hasFetched && plugins && plugins && <PluginList plugins={plugins} />}
</>
......
......@@ -20,12 +20,12 @@ exports[`Render should render component 1`] = `
linkButton={
Object {
"href": "https://grafana.com/plugins?utm_source=grafana_plugin_list",
"target": "_blank",
"title": "Find more plugins on Grafana.com",
}
}
searchQuery=""
setSearchQuery={[Function]}
target="_blank"
/>
</PageContents>
</Page>
......@@ -51,12 +51,12 @@ exports[`Render should render list 1`] = `
linkButton={
Object {
"href": "https://grafana.com/plugins?utm_source=grafana_plugin_list",
"target": "_blank",
"title": "Find more plugins on Grafana.com",
}
}
searchQuery=""
setSearchQuery={[Function]}
target="_blank"
/>
<PluginList
plugins={Array []}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment