Fix errors

This commit is contained in:
dragongoose 2023-11-25 18:27:21 -05:00
parent 081a3d6619
commit 8c78994985
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
3 changed files with 4 additions and 8 deletions

View file

@ -11,7 +11,6 @@ import ShareModal from '@/components/popups/ShareButtonModal.vue'
import type { Video } from '@/types' import type { Video } from '@/types'
import { truncate, abbreviate, getEndpoint } from '@/mixins' import { truncate, abbreviate, getEndpoint } from '@/mixins'
import { chatVisible } from '@/settingsManager'
export default { export default {
inject: ['rootBackendUrl'], inject: ['rootBackendUrl'],
@ -75,7 +74,6 @@ export default {
methods: { methods: {
truncate, truncate,
abbreviate, abbreviate,
chatVisible,
toggleShareModal() { toggleShareModal() {
this.shareModalVisible = !this.shareModalVisible this.shareModalVisible = !this.shareModalVisible
} }

View file

@ -14,7 +14,7 @@ import ShareModal from '@/components/popups/ShareButtonModal.vue'
import type { StreamerData } from '@/types' import type { StreamerData } from '@/types'
import { truncate, abbreviate, getEndpoint } from '@/mixins' import { truncate, abbreviate, getEndpoint } from '@/mixins'
import { chatVisible, getSetting } from '@/settingsManager' import { getSetting } from '@/settingsManager'
export default { export default {
inject: ['rootBackendUrl'], inject: ['rootBackendUrl'],
@ -76,7 +76,6 @@ export default {
methods: { methods: {
truncate, truncate,
abbreviate, abbreviate,
chatVisible,
getSetting, getSetting,
toggleShareModal() { toggleShareModal() {
this.shareModalVisible = !this.shareModalVisible this.shareModalVisible = !this.shareModalVisible
@ -194,7 +193,7 @@ export default {
</div> </div>
<twitch-chat <twitch-chat
v-if="chatVisible()" v-if="!getSetting('chatVisible')"
:isLive="true" :isLive="true"
:channelName="data.login" :channelName="data.login"
class="h-2/3" class="h-2/3"

View file

@ -12,7 +12,7 @@ import ShareModal from '@/components/popups/ShareButtonModal.vue'
import type { Video } from '@/types' import type { Video } from '@/types'
import { truncate, abbreviate, getEndpoint } from '@/mixins' import { truncate, abbreviate, getEndpoint } from '@/mixins'
import { chatVisible, getSetting } from '@/settingsManager' import { getSetting } from '@/settingsManager'
interface ChatComponent { interface ChatComponent {
updateVodComments: (time: number) => void updateVodComments: (time: number) => void
@ -67,12 +67,11 @@ export default {
truncate, truncate,
abbreviate, abbreviate,
handlePlayerTimeUpdate(time: number) { handlePlayerTimeUpdate(time: number) {
if (!chatVisible()) return if (!getSetting("chatVisible")) return
const chat = this.$refs.chat as ChatComponent const chat = this.$refs.chat as ChatComponent
this.time = time this.time = time
chat.updateVodComments(time) chat.updateVodComments(time)
}, },
chatVisible,
getSetting, getSetting,
toggleShareModal() { toggleShareModal() {
this.shareModalVisible = !this.shareModalVisible this.shareModalVisible = !this.shareModalVisible