mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 13:22:58 -05:00
Fix errors
This commit is contained in:
parent
081a3d6619
commit
8c78994985
3 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue