Force defaultHtml setting of v-tooltip to be disabled

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-07-29 15:51:08 +02:00
parent 48b271a216
commit 10ce9c6878
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
4 changed files with 8 additions and 6 deletions

View File

@ -21,15 +21,15 @@
*/
import Vue from 'vue';
import { PopoverMenu } from 'nextcloud-vue';
import { Tooltip, PopoverMenu } from 'nextcloud-vue';
import ClickOutside from 'vue-click-outside';
import { VTooltip } from 'v-tooltip';
Vue.prototype.t = t;
Vue.component('PopoverMenu', PopoverMenu);
Vue.directive('ClickOutside', ClickOutside);
Vue.directive('Tooltip', VTooltip);
Tooltip.options.defaultHtml = false
Vue.directive('Tooltip', Tooltip);
import View from './views/CollaborationView';

View File

@ -96,6 +96,8 @@
import { VTooltip } from 'v-tooltip';
import ClickOutside from 'vue-click-outside';
VTooltip.options.defaultHtml = false
export default {
name: 'root',
components: {

View File

@ -28,7 +28,7 @@ import App from './App.vue';
import router from './router';
import store from './store';
Vue.use(VTooltip);
Vue.use(VTooltip, { defaultHtml: false });
sync(store, router);
@ -55,4 +55,4 @@ const app = new Vue({
render: h => h(App)
}).$mount('#content');
export { app, router, store };
export { app, router, store };

View File

@ -28,7 +28,7 @@ import AuthTokenSection from './components/AuthTokenSection';
__webpack_nonce__ = btoa(OC.requestToken);
Vue.use(VueClipboard);
Vue.use(VTooltip);
Vue.use(VTooltip, { defaultHtml: false });
Vue.prototype.t = t;
const View = Vue.extend(AuthTokenSection);