Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
516bd2b6
Commit
516bd2b6
authored
Oct 05, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed view replaced file button in diff not working
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/260415
parent
19c74038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
app/assets/javascripts/diffs/components/diff_file_header.vue
app/assets/javascripts/diffs/components/diff_file_header.vue
+6
-9
No files found.
app/assets/javascripts/diffs/components/diff_file_header.vue
View file @
516bd2b6
...
...
@@ -136,13 +136,9 @@ export default {
},
viewReplacedFileButtonText
()
{
const
truncatedBaseSha
=
escape
(
truncateSha
(
this
.
diffFile
.
diff_refs
.
base_sha
));
return
sprintf
(
s__
(
'
MergeRequests|View replaced file @ %{commitId}
'
),
{
commitId
:
`<span class="commit-sha">
${
truncatedBaseSha
}
</span>`
,
},
false
,
);
return
sprintf
(
s__
(
'
MergeRequests|View replaced file @ %{commitId}
'
),
{
commitId
:
truncatedBaseSha
,
});
},
gfmCopyText
()
{
return
`\`
${
this
.
diffFile
.
file_path
}
\``
;
...
...
@@ -311,10 +307,11 @@ export default {
<gl-dropdown-item
v-if=
"diffFile.replaced_view_path"
ref=
"replacedFileButton"
v-safe-html=
"viewReplacedFileButtonText"
:href=
"diffFile.replaced_view_path"
target=
"_blank"
/>
>
{{ viewReplacedFileButtonText }}
</gl-dropdown-item>
<gl-dropdown-item
ref=
"viewButton"
:href=
"diffFile.view_path"
target=
"_blank"
>
{{ viewFileButtonText }}
</gl-dropdown-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment