Skip to content

Commit af49331

Browse files

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎templates/repo/issue/view_title.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
2424
<div class="edit-buttons">
2525
<button id="cancel-edit-title" class="ui small basic button in-edit tw-hidden">{{ctx.Locale.Tr "repo.issues.cancel"}}</button>
26-
<button id="save-edit-title" class="ui small primary button in-edit tw-hidden tw-mr-0" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title">{{ctx.Locale.Tr "repo.issues.save"}}</button>
26+
<button id="save-edit-title" class="ui small primary button in-edit tw-hidden tw-mr-0" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title" {{if .Issue.IsPull}}data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch"{{end}}>{{ctx.Locale.Tr "repo.issues.save"}}</button>
2727
</div>
2828
{{end}}
2929
</div>
@@ -81,7 +81,7 @@
8181
</span>
8282
</a>
8383
{{end}}
84-
<span id="pull-desc-edit" class="tw-hidden flex-text-block" data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch">
84+
<span id="pull-desc-edit" class="tw-hidden flex-text-block">
8585
<div class="ui floating filter dropdown">
8686
<div class="ui basic small button tw-mr-0">
8787
<span class="text">{{ctx.Locale.Tr "repo.pulls.compare_compare"}}: {{$.HeadTarget}}</span>

0 commit comments

Comments
 (0)
Please sign in to comment.