Fix more linter issues

This commit is contained in:
Preston 2020-10-04 14:42:46 -04:00
parent 8077d9d999
commit cbb1b853b5
4 changed files with 9 additions and 9 deletions

View File

@ -348,7 +348,7 @@ const actions = {
},
showToast (_, payload) {
FtToastEvents.$emit('toast.open', payload.message, payload.action, payload.time)
FtToastEvents.$emit('toast-open', payload.message, payload.action, payload.time)
}
}

View File

@ -467,12 +467,12 @@ a:visited {
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-color);
border-radius: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb:hover {

View File

@ -30,6 +30,10 @@ export default Vue.extend({
'watch-video-playlist': WatchVideoPlaylist,
'watch-video-recommendations': WatchVideoRecommendations
},
beforeRouteLeave: function (to, from, next) {
this.handleRouteChange()
next()
},
data: function() {
return {
isLoading: false,
@ -883,9 +887,5 @@ export default Vue.extend({
'updateHistory',
'updateWatchProgress'
])
},
beforeRouteLeave: function (to, from, next) {
this.handleRouteChange()
next()
}
})

View File

@ -77,7 +77,7 @@
:is-upcoming="isUpcoming"
class="watchVideo"
:class="{ theatreWatchVideo: useTheatreMode }"
@theatreMode="toggleTheatreMode"
@theatre-mode="toggleTheatreMode"
/>
<watch-video-description
v-if="!isLoading"
@ -86,14 +86,14 @@
:description-html="videoDescriptionHtml"
class="watchVideo"
:class="{ theatreWatchVideo: useTheatreMode }"
@timestampEvent="changeTimestamp"
@timestamp-event="changeTimestamp"
/>
<watch-video-comments
v-if="!isLoading && !isLive"
:id="videoId"
class="watchVideo"
:class="{ theatreWatchVideo: useTheatreMode }"
@timestampEvent="changeTimestamp"
@timestamp-event="changeTimestamp"
/>
</div>
<div class="sidebarArea">