Skip to content

Commit

Permalink
fix(directive): unify tooltip registration
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed May 15, 2024
1 parent 7ffbf78 commit 59b8f51
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/AdminSettings/TurnServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default {
name: 'TurnServer',

directives: {
tooltip: Tooltip,
Tooltip,
},

components: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AdminSettings/WebServerSetupChecks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
name: 'WebServerSetupChecks',

directives: {
tooltip: Tooltip,
Tooltip,
},

components: {
Expand Down
7 changes: 6 additions & 1 deletion src/components/CallView/shared/LocalAudioControlButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<script>
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'

import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'

import VolumeIndicator from '../../UIShared/VolumeIndicator.vue'

Expand All @@ -39,6 +40,10 @@ export default {
VolumeIndicator,
},

directives: {
Tooltip,
},

props: {
conversation: {
type: Object,
Expand Down
7 changes: 6 additions & 1 deletion src/components/CallView/shared/LocalVideoControlButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import VideoOff from 'vue-material-design-icons/VideoOff.vue'

import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'

import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'

import { PARTICIPANT } from '../../../constants.js'
import BrowserStorage from '../../../services/BrowserStorage.js'
Expand All @@ -38,6 +39,10 @@ export default {
VideoOff,
},

directives: {
Tooltip,
},

props: {
conversation: {
type: Object,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CallView/shared/VideoBottomBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
},

directives: {
tooltip: Tooltip,
Tooltip,
},

inheritAttrs: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ import {
getBridgeProcessState,
} from '../../../services/matterbridgeService.js'

Vue.directive('tooltip', Tooltip)

export default {
name: 'MatterbridgeSettings',
components: {
Expand All @@ -120,10 +118,8 @@ export default {
Plus,
},

mixins: [
],

props: {
directives: {
Tooltip,
},

data() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
},

directives: {
tooltip: Tooltip,
Tooltip,
},

props: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewMessage/NewMessageAudioRecorder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
},

directives: {
tooltip: Tooltip,
Tooltip,
},

props: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/RightSidebar/Participants/Participant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export default {
},

directives: {
tooltip: Tooltip,
Tooltip,
},

props: {
Expand Down
5 changes: 5 additions & 0 deletions src/components/TopBar/ReactionMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { emit } from '@nextcloud/event-bus'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcActionButtonGroup from '@nextcloud/vue/dist/Components/NcActionButtonGroup.js'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'

export default {
name: 'ReactionMenu',
Expand All @@ -47,6 +48,10 @@ export default {
EmoticonOutline,
},

directives: {
Tooltip,
},

props: {
/**
* The conversation token
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopBar/TopBarMediaControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
name: 'TopBarMediaControls',

directives: {
tooltip: Tooltip,
Tooltip,
},
components: {
LocalAudioControlButton,
Expand Down
5 changes: 5 additions & 0 deletions src/components/TopBar/TopBarMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'

import { useIsInCall } from '../../composables/useIsInCall.js'
import { CALL, CONVERSATION, PARTICIPANT } from '../../constants.js'
Expand Down Expand Up @@ -203,6 +204,10 @@ export default {
VideoIcon,
},

directives: {
Tooltip,
},

props: {
/**
* The conversation token
Expand Down

0 comments on commit 59b8f51

Please sign in to comment.