Corrected the fetch url for context popup in issue conversation

This commit is contained in:
Marco Aurelio 2025-04-05 01:12:00 +01:00
parent 4855fb1603
commit 8476a21436
No known key found for this signature in database
GPG key ID: F6D2EC84E41E45C8
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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}}));
},
});
}