From 976db2a8b78b18f6ca934b9da93b4e3b2c746de5 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 15 Sep 2021 09:45:27 +0100 Subject: Do not show issue context popup on external issues (#17050) The issues pop-up context cannot work for external issues - therefore do not show these. Fix #17047 Signed-off-by: Andrew Thornton --- web_src/js/features/contextpopup.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web_src/js/features/contextpopup.js') diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js index 8583c6253c..b97f77275a 100644 --- a/web_src/js/features/contextpopup.js +++ b/web_src/js/features/contextpopup.js @@ -7,6 +7,9 @@ export default function initContextPopups() { if (!refIssues.length) return; refIssues.each(function () { + if ($(this).hasClass('ref-external-issue')) { + return; + } const [index, _issues, repo, owner] = $(this).attr('href').replace(/[#?].*$/, '').split('/').reverse(); const el = document.createElement('div'); -- cgit v1.2.3