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

Fixes #24622
This commit is contained in:
Zoltán Bedi
2020-07-14 10:26:25 +02:00
committed by GitHub
parent 077aec465c
commit 7bbfb57dd1
2 changed files with 3 additions and 3 deletions

View File

@ -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} />}
</>

View File

@ -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 []}