From 2010ef3ed9580c990d7202c182f915edb3cc6053 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 1 Oct 2020 11:42:37 +0200 Subject: [PATCH] SONAR-12996 Make copy-path-to-clipboard button more accessible --- .../main/js/components/SourceViewer/SourceViewerHeader.tsx | 6 +++++- .../__snapshots__/SourceViewerHeader-test.tsx.snap | 3 +++ .../src/main/resources/org/sonar/l10n/core.properties | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx index 48b0b8d0b00..20ccd738614 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx @@ -149,7 +149,11 @@ export default class SourceViewerHeader extends React.PureComponent {collapsedDirFromPath(path)} {fileFromPath(path)} - + diff --git a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap index 6e53dad11aa..eaf213f5dcf 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap @@ -45,6 +45,7 @@ exports[`should render correctly for a regular file 1`] = ` className="nudged-up spacer-left" > @@ -165,6 +166,7 @@ exports[`should render correctly for a unit test 1`] = ` className="nudged-up spacer-left" > @@ -303,6 +305,7 @@ exports[`should render correctly if issue details are passed 1`] = ` className="nudged-up spacer-left" > diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 16c432c77d0..c035b921896 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2518,6 +2518,7 @@ component_viewer.show_details=Show Measures component_viewer.file_measures=File measures component_viewer.show_all_measures=Show all measures component_viewer.no_component=The component has been removed or never existed. +component_viewer.copy_path_to_clipboard=Copy the file path to the clipboard source_viewer.view_all_issues=See all issues in this file source_viewer.covered=Covered by the following tests -- 2.39.5