|
|
@ -4,7 +4,7 @@ import {createTippy, showTemporaryTooltip} from '../modules/tippy.ts'; |
|
|
|
import {hideElem, showElem, toggleElem} from '../utils/dom.ts'; |
|
|
|
import {hideElem, showElem, toggleElem} from '../utils/dom.ts'; |
|
|
|
import {setFileFolding} from './file-fold.ts'; |
|
|
|
import {setFileFolding} from './file-fold.ts'; |
|
|
|
import {ComboMarkdownEditor, getComboMarkdownEditor, initComboMarkdownEditor} from './comp/ComboMarkdownEditor.ts'; |
|
|
|
import {ComboMarkdownEditor, getComboMarkdownEditor, initComboMarkdownEditor} from './comp/ComboMarkdownEditor.ts'; |
|
|
|
import {toAbsoluteUrl} from '../utils.ts'; |
|
|
|
import {parseIssuePageInfo, toAbsoluteUrl} from '../utils.ts'; |
|
|
|
import {GET, POST} from '../modules/fetch.ts'; |
|
|
|
import {GET, POST} from '../modules/fetch.ts'; |
|
|
|
import {showErrorToast} from '../modules/toast.ts'; |
|
|
|
import {showErrorToast} from '../modules/toast.ts'; |
|
|
|
import {initRepoIssueSidebar} from './repo-issue-sidebar.ts'; |
|
|
|
import {initRepoIssueSidebar} from './repo-issue-sidebar.ts'; |
|
|
@ -57,13 +57,11 @@ function excludeLabel(item) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function initRepoIssueSidebarList() { |
|
|
|
export function initRepoIssueSidebarList() { |
|
|
|
const repolink = $('#repolink').val(); |
|
|
|
const issuePageInfo = parseIssuePageInfo(); |
|
|
|
const repoId = $('#repoId').val(); |
|
|
|
|
|
|
|
const crossRepoSearch = $('#crossRepoSearch').val(); |
|
|
|
const crossRepoSearch = $('#crossRepoSearch').val(); |
|
|
|
const tp = $('#type').val(); |
|
|
|
let issueSearchUrl = `${issuePageInfo.repoLink}/issues/search?q={query}&type=${issuePageInfo.issueDependencySearchType}`; |
|
|
|
let issueSearchUrl = `${appSubUrl}/${repolink}/issues/search?q={query}&type=${tp}`; |
|
|
|
|
|
|
|
if (crossRepoSearch === 'true') { |
|
|
|
if (crossRepoSearch === 'true') { |
|
|
|
issueSearchUrl = `${appSubUrl}/issues/search?q={query}&priority_repo_id=${repoId}&type=${tp}`; |
|
|
|
issueSearchUrl = `${appSubUrl}/issues/search?q={query}&priority_repo_id=${issuePageInfo.repoId}&type=${issuePageInfo.issueDependencySearchType}`; |
|
|
|
} |
|
|
|
} |
|
|
|
$('#new-dependency-drop-list') |
|
|
|
$('#new-dependency-drop-list') |
|
|
|
.dropdown({ |
|
|
|
.dropdown({ |
|
|
|