From ac38dd872dca648eab2facc688d66dac73d119cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 26 May 2020 09:33:10 +0200 Subject: [PATCH] PluginsListPage: More plugins button should open in new window (#24635) * PluginsListPage: More plugins button should open in new window Fixes #24622 * Updated snapshot --- public/app/features/plugins/PluginListPage.tsx | 1 + .../features/plugins/__snapshots__/PluginListPage.test.tsx.snap | 2 ++ 2 files changed, 3 insertions(+) diff --git a/public/app/features/plugins/PluginListPage.tsx b/public/app/features/plugins/PluginListPage.tsx index 06d25f4ca2b..bafc55fd395 100644 --- a/public/app/features/plugins/PluginListPage.tsx +++ b/public/app/features/plugins/PluginListPage.tsx @@ -35,6 +35,7 @@ export class PluginListPage extends PureComponent { const linkButton = { href: 'https://grafana.com/plugins?utm_source=grafana_plugin_list', title: 'Find more plugins on Grafana.com', + target: '_blank', }; return ( diff --git a/public/app/features/plugins/__snapshots__/PluginListPage.test.tsx.snap b/public/app/features/plugins/__snapshots__/PluginListPage.test.tsx.snap index 52cd762f00f..69b2c12edbf 100644 --- a/public/app/features/plugins/__snapshots__/PluginListPage.test.tsx.snap +++ b/public/app/features/plugins/__snapshots__/PluginListPage.test.tsx.snap @@ -20,6 +20,7 @@ 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", } } @@ -50,6 +51,7 @@ 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", } }