0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

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 { truncate, abbreviate, getEndpoint } from '@/mixins'
import { chatVisible } from '@/settingsManager'
export default {
inject: ['rootBackendUrl'],
@ -75,7 +74,6 @@ export default {
methods: {
truncate,
abbreviate,
chatVisible,
toggleShareModal() {
this.shareModalVisible = !this.shareModalVisible
}

View file

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

View file

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