mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-08 02:31:36 +02:00
Corrected the fetch url for context popup in issue conversation
This commit is contained in:
parent
4855fb1603
commit
8476a21436
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ export default {
|
|||
this.i18nErrorMessage = null;
|
||||
|
||||
try {
|
||||
const response = await GET(`${appSubUrl}/${data.owner}/${data.repo}/issues/${data.index}/info`);
|
||||
const response = await GET(`${appSubUrl}/${data.owner}/${data.repo}/${data.type}/${data.index}/info`);
|
||||
const respJson = await response.json();
|
||||
if (!response.ok) {
|
||||
this.i18nErrorMessage = respJson.message ?? i18n.network_error;
|
||||
|
|
|
@ -14,7 +14,7 @@ export function attachRefIssueContextPopup(refIssues) {
|
|||
return;
|
||||
}
|
||||
|
||||
const {owner, repo, index} = parseIssueHref(refIssue.getAttribute('href'));
|
||||
const {owner, repo, type, index} = parseIssueHref(refIssue.getAttribute('href'));
|
||||
if (!owner) return;
|
||||
|
||||
const el = document.createElement('div');
|
||||
|
@ -36,7 +36,7 @@ export function attachRefIssueContextPopup(refIssues) {
|
|||
role: 'dialog',
|
||||
interactiveBorder: 5,
|
||||
onShow: () => {
|
||||
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
|
||||
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, type, index}}));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue