From 7ac1a4a9fe61f7fa5c61006b45485aaf28098c2f Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Sun, 16 Feb 2020 09:58:05 +0200 Subject: [PATCH] remove v-tooltip completely --- package.json | 1 - .../moderation_tools/moderation_tools.js | 5 +- .../moderation_tools/moderation_tools.vue | 13 +-- src/components/popover/popover.js | 104 +++++++++--------- .../status_popover/status_popover.vue | 4 +- src/components/user_card/user_card.vue | 2 +- src/main.js | 8 -- yarn.lock | 19 ---- 8 files changed, 65 insertions(+), 91 deletions(-) diff --git a/package.json b/package.json index 5c7fa31e..542086b4 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "portal-vue": "^2.1.4", "sanitize-html": "^1.13.0", "v-click-outside": "^2.1.1", - "v-tooltip": "^2.0.2", "vue": "^2.5.13", "vue-chat-scroll": "^1.2.1", "vue-i18n": "^7.3.2", diff --git a/src/components/moderation_tools/moderation_tools.js b/src/components/moderation_tools/moderation_tools.js index 757166ed..3a8432db 100644 --- a/src/components/moderation_tools/moderation_tools.js +++ b/src/components/moderation_tools/moderation_tools.js @@ -1,4 +1,5 @@ import DialogModal from '../dialog_modal/dialog_modal.vue' +import Popover from '../popover/popover.vue' const FORCE_NSFW = 'mrf_tag:media-force-nsfw' const STRIP_MEDIA = 'mrf_tag:media-strip' @@ -14,7 +15,6 @@ const ModerationTools = { ], data () { return { - showDropDown: false, tags: { FORCE_NSFW, STRIP_MEDIA, @@ -28,7 +28,8 @@ const ModerationTools = { } }, components: { - DialogModal + DialogModal, + Popover }, computed: { tagsSet () { diff --git a/src/components/moderation_tools/moderation_tools.vue b/src/components/moderation_tools/moderation_tools.vue index 006d6373..c6a0dbd2 100644 --- a/src/components/moderation_tools/moderation_tools.vue +++ b/src/components/moderation_tools/moderation_tools.vue @@ -1,13 +1,12 @@