mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 12:24:50 +02:00
b0df06d533
"jQuery is deprecated and will be removed with Nextcloud 19" Well... At least it is removed now 😉 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
27 lines
693 B
JavaScript
27 lines
693 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'
|
|
|
|
/**
|
|
* Set up the contacts menu component ("ContactsMenu")
|
|
* This is the menu where users can access their contacts or other users on this instance.
|
|
*/
|
|
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),
|
|
})
|
|
}
|
|
}
|