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 = {
|
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> {
|
|||||||
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`] = `
|
|||||||
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`] = `
|
|||||||
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 []}
|
||||||
|
|||||||
Reference in New Issue
Block a user