mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 02:21:12 -04:00
"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>
22 lines
557 B
JavaScript
22 lines
557 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import Vue from 'vue'
|
|
import AccountMenu from '../views/AccountMenu.vue'
|
|
|
|
/**
|
|
* Set up the user menu component ("AccountMenu")
|
|
* This is the top right menu where users can access their settings, profile, logout, etc.
|
|
*/
|
|
export function setUp() {
|
|
const mountPoint = document.getElementById('user-menu')
|
|
if (mountPoint) {
|
|
new Vue({
|
|
name: 'AccountMenuRoot',
|
|
el: mountPoint,
|
|
render: (h) => h(AccountMenu),
|
|
})
|
|
}
|
|
}
|