mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 05:08:36 +08:00
PluginsListPage: More plugins button should open in new window (#26305)
Fixes #24622
This commit is contained in:
@ -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 []}
|
||||
|
Reference in New Issue
Block a user