summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-29 10:03:03 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-29 10:03:03 +0100
commit80ea98fdab10d08b3d31d3b00129cb49512b24fe (patch)
treeebf69fcfd18efe52e4d1b4b302915f7114b596e3 /src/main.js
parent0444744e0b4432406bf32dcb7ab7492dfe97cd70 (diff)
Allow to pick avatar from files + use modal
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index bc6e37a3..6b74fd5e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -27,7 +27,7 @@ import { sync } from 'vuex-router-sync'
import { generateFilePath } from 'nextcloud-server/dist/router'
/** GLOBAL COMPONENTS AND DIRECTIVE */
-import { Action, DatetimePicker, Multiselect, PopoverMenu } from 'nextcloud-vue'
+import { Action, DatetimePicker, Multiselect, PopoverMenu, Modal } from 'nextcloud-vue'
import ClickOutside from 'vue-click-outside'
import { VTooltip } from 'v-tooltip'
import VueClipboard from 'vue-clipboard2'
@@ -43,12 +43,16 @@ __webpack_nonce__ = btoa(OC.requestToken)
// eslint-disable-next-line
__webpack_public_path__ = generateFilePath('contacts', '', 'js/')
+// Register global components
Vue.component('Action', Action)
Vue.component('DatetimePicker', DatetimePicker)
+Vue.component('Modal', Modal)
Vue.component('Multiselect', Multiselect)
Vue.component('PopoverMenu', PopoverMenu)
+
Vue.directive('ClickOutside', ClickOutside)
Vue.directive('Tooltip', VTooltip)
+
Vue.use(VueClipboard)
sync(store, router)