File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/repo/issue/labels Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11<div class="ui small modal" id="issue-label-edit-modal"
2- data-repo- link="{{$.Link}}"
2+ data-current-page- link="{{$.Link}}"{{/*will be used to construct issue "new" and "edit" URLs*/}}
33 data-text-new-label="{{ctx.Locale.Tr "repo.issues.new_label"}}"
44 data-text-edit-label="{{ctx.Locale.Tr "repo.issues.label_modify"}}"
55>
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function initCompLabelEdit(pageSelector: string) {
4747 elModal . toggleAttribute ( 'data-need-warn-exclusive' , ! elExclusiveInput . checked && numIssues > 0 ) ;
4848 elModal . querySelector ( '.header' ) . textContent = isEdit ? elModal . getAttribute ( 'data-text-edit-label' ) : elModal . getAttribute ( 'data-text-new-label' ) ;
4949
50- const repoLink = elModal . getAttribute ( 'data-repo -link' ) ;
50+ const repoLink = elModal . getAttribute ( 'data-current-page -link' ) ;
5151 form . action = isEdit ? `${ repoLink } /edit` : `${ repoLink } /new` ;
5252 toggleElem ( elIsArchivedField , isEdit ) ;
5353 syncModalUi ( ) ;
You can’t perform that action at this time.
0 commit comments