2019-09-25 12:19:42 -04:00
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-05-10 07:38:11 -04:00
|
|
|
*/
|
|
|
|
|
|
2023-01-11 20:35:53 -05:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
|
|
import ContactsMenu from '../views/ContactsMenu.vue'
|
2019-05-10 07:38:11 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @todo move to contacts menu code https://github.com/orgs/nextcloud/projects/31#card-21213129
|
|
|
|
|
*/
|
|
|
|
|
export const setUp = () => {
|
2023-01-11 20:35:53 -05:00
|
|
|
const mountPoint = document.getElementById('contactsmenu')
|
|
|
|
|
if (mountPoint) {
|
|
|
|
|
// eslint-disable-next-line no-new
|
|
|
|
|
new Vue({
|
2024-10-03 09:02:44 -04:00
|
|
|
name: 'ContactsMenuRoot',
|
2023-01-11 20:35:53 -05:00
|
|
|
el: mountPoint,
|
|
|
|
|
render: h => h(ContactsMenu),
|
|
|
|
|
})
|
|
|
|
|
}
|
2019-05-10 07:38:11 -04:00
|
|
|
}
|