2021-03-31 06:15:40 -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-02-09 20:54:59 -05:00
|
|
|
import Vue from 'vue'
|
2019-05-10 07:38:11 -04:00
|
|
|
|
2024-07-29 08:05:45 -04:00
|
|
|
import AccountMenu from '../views/AccountMenu.vue'
|
2019-05-10 07:38:11 -04:00
|
|
|
|
|
|
|
|
export const setUp = () => {
|
2023-02-09 20:54:59 -05:00
|
|
|
const mountPoint = document.getElementById('user-menu')
|
|
|
|
|
if (mountPoint) {
|
|
|
|
|
// eslint-disable-next-line no-new
|
|
|
|
|
new Vue({
|
2024-10-03 09:02:44 -04:00
|
|
|
name: 'AccountMenuRoot',
|
2023-02-09 20:54:59 -05:00
|
|
|
el: mountPoint,
|
2024-07-29 08:05:45 -04:00
|
|
|
render: h => h(AccountMenu),
|
2023-02-09 20:54:59 -05:00
|
|
|
})
|
|
|
|
|
}
|
2019-05-10 07:38:11 -04:00
|
|
|
}
|