mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 05:33:11 -04:00
25 lines
643 B
JavaScript
25 lines
643 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import Vue from 'vue'
|
|
import ContactsMenu from '../views/ContactsMenu.vue'
|
|
import ContactsMenuService from '../services/ContactsMenuService.ts'
|
|
|
|
/**
|
|
* @todo move to contacts menu code https://github.com/orgs/nextcloud/projects/31#card-21213129
|
|
*/
|
|
export function setUp() {
|
|
const mountPoint = document.getElementById('contactsmenu')
|
|
|
|
if (mountPoint) {
|
|
window.OC.ContactsMenu = new ContactsMenuService()
|
|
|
|
new Vue({
|
|
name: 'ContactsMenuRoot',
|
|
el: mountPoint,
|
|
render: (h) => h(ContactsMenu),
|
|
})
|
|
}
|
|
}
|