Skip to content

Commit 5aa7c75

Browse files
committed
rename data-repo-link to data-current-page-link
1 parent 47a9665 commit 5aa7c75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/issue/labels/label_edit_modal.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
>

web_src/js/features/comp/LabelEdit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)