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> { ...@@ -35,7 +35,6 @@ export class PluginListPage extends PureComponent<Props> {
const linkButton = { const linkButton = {
href: 'https://grafana.com/plugins?utm_source=grafana_plugin_list', href: 'https://grafana.com/plugins?utm_source=grafana_plugin_list',
title: 'Find more plugins on Grafana.com', title: 'Find more plugins on Grafana.com',
target: '_blank',
}; };
return ( return (
...@@ -46,6 +45,7 @@ export class PluginListPage extends PureComponent<Props> { ...@@ -46,6 +45,7 @@ export class PluginListPage extends PureComponent<Props> {
searchQuery={searchQuery} searchQuery={searchQuery}
setSearchQuery={query => setPluginsSearchQuery(query)} setSearchQuery={query => setPluginsSearchQuery(query)}
linkButton={linkButton} linkButton={linkButton}
target="_blank"
/> />
{hasFetched && plugins && plugins && <PluginList plugins={plugins} />} {hasFetched && plugins && plugins && <PluginList plugins={plugins} />}
</> </>
......
...@@ -20,12 +20,12 @@ exports[`Render should render component 1`] = ` ...@@ -20,12 +20,12 @@ exports[`Render should render component 1`] = `
linkButton={ linkButton={
Object { Object {
"href": "https://grafana.com/plugins?utm_source=grafana_plugin_list", "href": "https://grafana.com/plugins?utm_source=grafana_plugin_list",
"target": "_blank",
"title": "Find more plugins on Grafana.com", "title": "Find more plugins on Grafana.com",
} }
} }
searchQuery="" searchQuery=""
setSearchQuery={[Function]} setSearchQuery={[Function]}
target="_blank"
/> />
</PageContents> </PageContents>
</Page> </Page>
...@@ -51,12 +51,12 @@ exports[`Render should render list 1`] = ` ...@@ -51,12 +51,12 @@ exports[`Render should render list 1`] = `
linkButton={ linkButton={
Object { Object {
"href": "https://grafana.com/plugins?utm_source=grafana_plugin_list", "href": "https://grafana.com/plugins?utm_source=grafana_plugin_list",
"target": "_blank",
"title": "Find more plugins on Grafana.com", "title": "Find more plugins on Grafana.com",
} }
} }
searchQuery="" searchQuery=""
setSearchQuery={[Function]} setSearchQuery={[Function]}
target="_blank"
/> />
<PluginList <PluginList
plugins={Array []} 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