mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
get the tooltip working
This commit is contained in:
parent
637c3d1ffa
commit
15391991f2
@ -58,6 +58,14 @@ export default {
|
||||
}
|
||||
return this.$t('group.joinLeaveButton.join')
|
||||
},
|
||||
tooltip() {
|
||||
return {
|
||||
content: this.$t('group.joinLeaveButton.tooltip'),
|
||||
placement: 'right',
|
||||
show: this.isMember && !this.isNonePendingMember && this.hovered,
|
||||
trigger: 'manual',
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
isMember() {
|
||||
@ -72,14 +80,6 @@ export default {
|
||||
...mapMutations({
|
||||
commitModalData: 'modal/SET_OPEN',
|
||||
}),
|
||||
tooltip() {
|
||||
return {
|
||||
content: this.$t('group.joinLeaveButton.tooltip'),
|
||||
placement: 'right',
|
||||
show: this.isMember && !this.isNonePendingMember && this.hovered,
|
||||
trigger: this.isMember && !this.isNonePendingMember ? 'hover' : 'manual',
|
||||
}
|
||||
},
|
||||
onHover() {
|
||||
if (!this.disabled && !this.localLoading) {
|
||||
this.hovered = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user