mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-31 18:13:54 -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 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue