Commit cb4b64bc authored by Coung Ngo's avatar Coung Ngo Committed by Brandon Labuschagne

Move issues code out of ~/pages

parent e3af7906
import FilteredSearchServiceDesk from './filtered_search_service_desk';
export function initFilteredSearchServiceDesk() {
if (document.querySelector('.filtered-search')) {
const supportBotData = JSON.parse(
document.querySelector('.js-service-desk-issues').dataset.supportBot,
);
const filteredSearchManager = new FilteredSearchServiceDesk(supportBotData);
filteredSearchManager.setup();
}
}
import initRelatedIssues from '~/related_issues';
import initSidebarBundle from '~/sidebar/sidebar_bundle';
import initShow from '../../issues/show';
import initShow from '~/issues/show';
initShow();
initSidebarBundle();
......
import initForm from 'ee_else_ce/pages/projects/issues/form';
import initForm from 'ee_else_ce/issues/form';
initForm();
import initForm from 'ee_else_ce/pages/projects/issues/form';
import initForm from 'ee_else_ce/issues/form';
initForm();
import { mountIssuablesListApp } from '~/issues_list';
import FilteredSearchServiceDesk from './filtered_search';
import { initFilteredSearchServiceDesk } from '~/issues/init_filtered_search_service_desk';
const supportBotData = JSON.parse(
document.querySelector('.js-service-desk-issues').dataset.supportBot,
);
if (document.querySelector('.filtered-search')) {
const filteredSearchManager = new FilteredSearchServiceDesk(supportBotData);
filteredSearchManager.setup();
}
initFilteredSearchServiceDesk();
if (gon.features?.vueIssuablesList) {
mountIssuablesListApp();
......
import { store } from '~/notes/stores';
import initRelatedIssues from '~/related_issues';
import initSidebarBundle from '~/sidebar/sidebar_bundle';
import initShow from '../show';
import initShow from '~/issues/show';
initShow();
initSidebarBundle(store);
......
import initEpicsSelect from 'ee/vue_shared/components/sidebar/epics_select/epics_select_bundle';
import initForm from '~/pages/projects/issues/form';
import initForm from '~/issues/form';
export default () => {
initEpicsSelect();
......
import initRelatedFeatureFlags from 'ee/related_feature_flags';
import { store } from '~/notes/stores';
import initShow from '~/pages/projects/issues/show';
import initShow from '~/issues/show';
import initRelatedIssues from '~/related_issues';
import initSidebarBundle from '~/sidebar/sidebar_bundle';
import UserCallout from '~/user_callout';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment