Commit 6ee263e5 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'cngo-add-vue-app-names' into 'master'

Add Vue app names for issue show page

See merge request gitlab-org/gitlab!80741
parents 4a109ec8 2fd98f6f
...@@ -24,6 +24,7 @@ export default () => { ...@@ -24,6 +24,7 @@ export default () => {
return new Vue({ return new Vue({
el, el,
name: 'DesignRoot',
router, router,
apolloProvider, apolloProvider,
provide: { provide: {
......
...@@ -12,6 +12,7 @@ export default (el) => { ...@@ -12,6 +12,7 @@ export default (el) => {
return new Vue({ return new Vue({
el, el,
name: 'AwardsListRoot',
store: createstore(), store: createstore(),
computed: { computed: {
...mapState(['currentUserId', 'canAwardEmoji', 'awards']), ...mapState(['currentUserId', 'canAwardEmoji', 'awards']),
......
...@@ -28,6 +28,7 @@ export default function initInviteMembersModal() { ...@@ -28,6 +28,7 @@ export default function initInviteMembersModal() {
return new Vue({ return new Vue({
el, el,
name: 'InviteMembersModalRoot',
provide: { provide: {
newProjectPath: el.dataset.newProjectPath, newProjectPath: el.dataset.newProjectPath,
}, },
......
...@@ -11,6 +11,7 @@ export default function initInviteMembersTrigger() { ...@@ -11,6 +11,7 @@ export default function initInviteMembersTrigger() {
return triggers.forEach((el) => { return triggers.forEach((el) => {
return new Vue({ return new Vue({
el, el,
name: 'InviteMembersTriggerRoot',
render: (createElement) => render: (createElement) =>
createElement(InviteMembersTrigger, { createElement(InviteMembersTrigger, {
props: { props: {
......
...@@ -97,6 +97,7 @@ export function initIssuableHeaderWarnings(store) { ...@@ -97,6 +97,7 @@ export function initIssuableHeaderWarnings(store) {
return new Vue({ return new Vue({
el, el,
name: 'IssuableHeaderWarningsRoot',
store, store,
provide: { hidden: parseBoolean(hidden) }, provide: { hidden: parseBoolean(hidden) },
render: (createElement) => createElement(IssuableHeaderWarnings), render: (createElement) => createElement(IssuableHeaderWarnings),
......
...@@ -13,6 +13,7 @@ export function initRelatedMergeRequests() { ...@@ -13,6 +13,7 @@ export function initRelatedMergeRequests() {
return new Vue({ return new Vue({
el, el,
name: 'RelatedMergeRequestsRoot',
store: createStore(), store: createStore(),
render: (createElement) => render: (createElement) =>
createElement(RelatedMergeRequests, { createElement(RelatedMergeRequests, {
......
...@@ -44,6 +44,7 @@ export function initIncidentApp(issueData = {}) { ...@@ -44,6 +44,7 @@ export function initIncidentApp(issueData = {}) {
return new Vue({ return new Vue({
el, el,
name: 'DescriptionRoot',
apolloProvider, apolloProvider,
provide: { provide: {
issueType: INCIDENT_TYPE, issueType: INCIDENT_TYPE,
...@@ -86,6 +87,7 @@ export function initIssueApp(issueData, store) { ...@@ -86,6 +87,7 @@ export function initIssueApp(issueData, store) {
return new Vue({ return new Vue({
el, el,
name: 'DescriptionRoot',
apolloProvider, apolloProvider,
store, store,
provide: { provide: {
...@@ -123,6 +125,7 @@ export function initHeaderActions(store, type = '') { ...@@ -123,6 +125,7 @@ export function initHeaderActions(store, type = '') {
return new Vue({ return new Vue({
el, el,
name: 'HeaderActionsRoot',
apolloProvider, apolloProvider,
store, store,
provide: { provide: {
......
...@@ -12,6 +12,7 @@ const mount = (el, Component) => { ...@@ -12,6 +12,7 @@ const mount = (el, Component) => {
return new Vue({ return new Vue({
el, el,
name: 'TopNavRoot',
store, store,
render(h) { render(h) {
return h(Component, { return h(Component, {
......
...@@ -19,7 +19,7 @@ export default (store) => { ...@@ -19,7 +19,7 @@ export default (store) => {
return new Vue({ return new Vue({
el: discussionFilterEl, el: discussionFilterEl,
name: 'DiscussionFilter', name: 'DiscussionFilterRoot',
components: { components: {
DiscussionFilter, DiscussionFilter,
}, },
......
...@@ -14,6 +14,7 @@ export default () => { ...@@ -14,6 +14,7 @@ export default () => {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'NotesRoot',
components: { components: {
notesApp, notesApp,
}, },
......
...@@ -8,6 +8,7 @@ export default (store) => { ...@@ -8,6 +8,7 @@ export default (store) => {
return new Vue({ return new Vue({
el, el,
name: 'SortDiscussionRoot',
store, store,
render(createElement) { render(createElement) {
return createElement(SortDiscussion); return createElement(SortDiscussion);
......
...@@ -20,6 +20,7 @@ const initPerformanceBar = (el) => { ...@@ -20,6 +20,7 @@ const initPerformanceBar = (el) => {
return new Vue({ return new Vue({
el, el,
name: 'PerformanceBarRoot',
components: { components: {
PerformanceBarApp: () => import('./components/performance_bar_app.vue'), PerformanceBarApp: () => import('./components/performance_bar_app.vue'),
}, },
......
...@@ -13,7 +13,7 @@ const getPopoversApp = () => { ...@@ -13,7 +13,7 @@ const getPopoversApp = () => {
document.body.appendChild(container); document.body.appendChild(container);
const Popovers = Vue.extend(PopoversComponent); const Popovers = Vue.extend(PopoversComponent);
app = new Popovers(); app = new Popovers({ name: 'PopoversRoot' });
app.$mount(`#${APP_ELEMENT_ID}`); app.$mount(`#${APP_ELEMENT_ID}`);
} }
......
...@@ -8,7 +8,7 @@ export default function initRelatedIssues() { ...@@ -8,7 +8,7 @@ export default function initRelatedIssues() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el: relatedIssuesRootElement, el: relatedIssuesRootElement,
name: 'RelatedIssuesApp', name: 'RelatedIssuesRoot',
components: { components: {
relatedIssuesRoot: RelatedIssuesRoot, relatedIssuesRoot: RelatedIssuesRoot,
}, },
......
...@@ -57,6 +57,7 @@ function mountSidebarToDoWidget() { ...@@ -57,6 +57,7 @@ function mountSidebarToDoWidget() {
return new Vue({ return new Vue({
el, el,
name: 'SidebarTodoRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarTodoWidget, SidebarTodoWidget,
...@@ -103,6 +104,7 @@ function mountAssigneesComponentDeprecated(mediator) { ...@@ -103,6 +104,7 @@ function mountAssigneesComponentDeprecated(mediator) {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarAssigneesRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarAssignees, SidebarAssignees,
...@@ -135,6 +137,7 @@ function mountAssigneesComponent() { ...@@ -135,6 +137,7 @@ function mountAssigneesComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarAssigneesRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarAssigneesWidget, SidebarAssigneesWidget,
...@@ -185,6 +188,7 @@ function mountReviewersComponent(mediator) { ...@@ -185,6 +188,7 @@ function mountReviewersComponent(mediator) {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarReviewersRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarReviewers, SidebarReviewers,
...@@ -218,6 +222,7 @@ function mountCrmContactsComponent() { ...@@ -218,6 +222,7 @@ function mountCrmContactsComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarCrmContactsRoot',
apolloProvider, apolloProvider,
components: { components: {
CrmContacts, CrmContacts,
...@@ -242,6 +247,7 @@ function mountMilestoneSelect() { ...@@ -242,6 +247,7 @@ function mountMilestoneSelect() {
return new Vue({ return new Vue({
el, el,
name: 'SidebarMilestoneRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarDropdownWidget, SidebarDropdownWidget,
...@@ -274,6 +280,7 @@ export function mountSidebarLabels() { ...@@ -274,6 +280,7 @@ export function mountSidebarLabels() {
return new Vue({ return new Vue({
el, el,
name: 'SidebarLabelsRoot',
apolloProvider, apolloProvider,
components: { components: {
...@@ -328,6 +335,7 @@ function mountConfidentialComponent() { ...@@ -328,6 +335,7 @@ function mountConfidentialComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarConfidentialRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarConfidentialityWidget, SidebarConfidentialityWidget,
...@@ -362,6 +370,7 @@ function mountDueDateComponent() { ...@@ -362,6 +370,7 @@ function mountDueDateComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarDueDateRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarDueDateWidget, SidebarDueDateWidget,
...@@ -392,6 +401,7 @@ function mountReferenceComponent() { ...@@ -392,6 +401,7 @@ function mountReferenceComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarReferenceRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarReferenceWidget, SidebarReferenceWidget,
...@@ -428,6 +438,7 @@ function mountLockComponent(store) { ...@@ -428,6 +438,7 @@ function mountLockComponent(store) {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarLockRoot',
store, store,
provide: { provide: {
fullPath, fullPath,
...@@ -451,6 +462,7 @@ function mountParticipantsComponent() { ...@@ -451,6 +462,7 @@ function mountParticipantsComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarParticipantsRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarParticipantsWidget, SidebarParticipantsWidget,
...@@ -479,6 +491,7 @@ function mountSubscriptionsComponent() { ...@@ -479,6 +491,7 @@ function mountSubscriptionsComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarSubscriptionsRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarSubscriptionsWidget, SidebarSubscriptionsWidget,
...@@ -509,6 +522,7 @@ function mountTimeTrackingComponent() { ...@@ -509,6 +522,7 @@ function mountTimeTrackingComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarTimeTrackingRoot',
apolloProvider, apolloProvider,
provide: { issuableType }, provide: { issuableType },
render: (createElement) => render: (createElement) =>
...@@ -534,6 +548,7 @@ function mountSeverityComponent() { ...@@ -534,6 +548,7 @@ function mountSeverityComponent() {
return new Vue({ return new Vue({
el: severityContainerEl, el: severityContainerEl,
name: 'SidebarSeverityRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarSeverity, SidebarSeverity,
...@@ -562,6 +577,7 @@ function mountCopyEmailComponent() { ...@@ -562,6 +577,7 @@ function mountCopyEmailComponent() {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el, el,
name: 'SidebarCopyEmailRoot',
render: (createElement) => render: (createElement) =>
createElement(CopyEmailToClipboard, { props: { issueEmailAddress: createNoteEmail } }), createElement(CopyEmailToClipboard, { props: { issueEmailAddress: createNoteEmail } }),
}); });
......
...@@ -21,6 +21,7 @@ const tooltipsApp = () => { ...@@ -21,6 +21,7 @@ const tooltipsApp = () => {
document.body.appendChild(container); document.body.appendChild(container);
app = new Vue({ app = new Vue({
name: 'TooltipsRoot',
render(h) { render(h) {
return h(Tooltips, { return h(Tooltips, {
props: { props: {
......
...@@ -18,6 +18,7 @@ export function initRelatedFeatureFlags() { ...@@ -18,6 +18,7 @@ export function initRelatedFeatureFlags() {
return new Vue({ return new Vue({
el, el,
name: 'RelatedFeatureFlagsRoot',
provide: { endpoint: el.dataset.endpoint }, provide: { endpoint: el.dataset.endpoint },
render: (createElement) => createElement(RelatedFeatureFlags), render: (createElement) => createElement(RelatedFeatureFlags),
}); });
......
...@@ -23,6 +23,7 @@ const mountWeightComponent = () => { ...@@ -23,6 +23,7 @@ const mountWeightComponent = () => {
return new Vue({ return new Vue({
el, el,
name: 'SidebarWeightRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarWeightWidget, SidebarWeightWidget,
...@@ -53,6 +54,7 @@ const mountStatusComponent = (store) => { ...@@ -53,6 +54,7 @@ const mountStatusComponent = (store) => {
return new Vue({ return new Vue({
el, el,
name: 'SidebarHealthStatusRoot',
apolloProvider, apolloProvider,
store, store,
components: { components: {
...@@ -82,6 +84,7 @@ function mountCveIdRequestComponent(store) { ...@@ -82,6 +84,7 @@ function mountCveIdRequestComponent(store) {
return new Vue({ return new Vue({
store, store,
el, el,
name: 'SidebarCveIdRequestRoot',
provide: { provide: {
iid: String(iid), iid: String(iid),
fullPath, fullPath,
...@@ -99,6 +102,7 @@ function mountEpicsSelect() { ...@@ -99,6 +102,7 @@ function mountEpicsSelect() {
return new Vue({ return new Vue({
el, el,
name: 'SidebarEpicRoot',
apolloProvider, apolloProvider,
components: { components: {
SidebarDropdownWidget, SidebarDropdownWidget,
...@@ -131,6 +135,7 @@ function mountIterationSelect() { ...@@ -131,6 +135,7 @@ function mountIterationSelect() {
return new Vue({ return new Vue({
el, el,
name: 'SidebarIterationRoot',
apolloProvider, apolloProvider,
provide: { provide: {
canUpdate: parseBoolean(canEdit), canUpdate: parseBoolean(canEdit),
......
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