fix: 🐛 little last fixes before release
This commit is contained in:
parent
ffe1335ce0
commit
988069b6a6
|
@ -13,6 +13,7 @@
|
||||||
@click="modalEpisode = episode">
|
@click="modalEpisode = episode">
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<NcActionButton v-if="!isCurrentEpisode(episode)"
|
<NcActionButton v-if="!isCurrentEpisode(episode)"
|
||||||
|
:aria-label="t('repod', 'Play')"
|
||||||
:name="t('repod', 'Play')"
|
:name="t('repod', 'Play')"
|
||||||
:title="t('repod', 'Play')"
|
:title="t('repod', 'Play')"
|
||||||
@click="load(episode)">
|
@click="load(episode)">
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
</template>
|
</template>
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
<NcActionButton v-if="isCurrentEpisode(episode)"
|
<NcActionButton v-if="isCurrentEpisode(episode)"
|
||||||
|
:aria-label="t('repod', 'Stop')"
|
||||||
:name="t('repod', 'Stop')"
|
:name="t('repod', 'Stop')"
|
||||||
:title="t('repod', 'Stop')"
|
:title="t('repod', 'Stop')"
|
||||||
@click="load(null)">
|
@click="load(null)">
|
||||||
|
@ -32,6 +34,7 @@
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<NcActions>
|
<NcActions>
|
||||||
<NcActionButton v-if="episode.duration && !hasEnded(episode)"
|
<NcActionButton v-if="episode.duration && !hasEnded(episode)"
|
||||||
|
:aria-label="t('repod', 'Mark as read')"
|
||||||
:disabled="loadingAction"
|
:disabled="loadingAction"
|
||||||
:name="t('repod', 'Mark as read')"
|
:name="t('repod', 'Mark as read')"
|
||||||
:title="t('repod', 'Mark as read')"
|
:title="t('repod', 'Mark as read')"
|
||||||
|
@ -41,6 +44,7 @@
|
||||||
</template>
|
</template>
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
<NcActionButton v-if="episode.duration && hasEnded(episode)"
|
<NcActionButton v-if="episode.duration && hasEnded(episode)"
|
||||||
|
:aria-label="t('repod', 'Mark as unread')"
|
||||||
:disabled="loadingAction"
|
:disabled="loadingAction"
|
||||||
:name="t('repod', 'Mark as unread')"
|
:name="t('repod', 'Mark as unread')"
|
||||||
:title="t('repod', 'Mark as unread')"
|
:title="t('repod', 'Mark as unread')"
|
||||||
|
@ -196,7 +200,9 @@ export default {
|
||||||
return this.currentEpisode && this.currentEpisode.url === episode.url
|
return this.currentEpisode && this.currentEpisode.url === episode.url
|
||||||
},
|
},
|
||||||
isListening(episode) {
|
isListening(episode) {
|
||||||
return episode.action && episode.action.action === 'PLAY' && !this.hasEnded(episode)
|
return episode.action
|
||||||
|
&& episode.action.action.toLowerCase() === 'play'
|
||||||
|
&& !this.hasEnded(episode)
|
||||||
},
|
},
|
||||||
load(episode) {
|
load(episode) {
|
||||||
this.$store.dispatch('player/load', episode)
|
this.$store.dispatch('player/load', episode)
|
||||||
|
|
|
@ -49,5 +49,8 @@ export default {
|
||||||
return this.$store.state.settings.filters
|
return this.$store.state.settings.filters
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$store.dispatch('settings/fetch')
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
:name="feed ? feed.title : url"
|
:name="feed ? feed.title : url"
|
||||||
:to="hash">
|
:to="hash">
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<NcActionButton :name="t(`core`, 'Delete')" @click="deleteSubscription">
|
<NcActionButton :aria-label="t(`core`, 'Delete')"
|
||||||
|
:name="t(`core`, 'Delete')"
|
||||||
|
:title="t(`core`, 'Delete')"
|
||||||
|
@click="deleteSubscription">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<Delete :size="20" />
|
<Delete :size="20" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -45,8 +45,8 @@ export const formatLocaleDate = (date) => date.toLocaleDateString(undefined, { d
|
||||||
*/
|
*/
|
||||||
export const durationToSeconds = (duration) => {
|
export const durationToSeconds = (duration) => {
|
||||||
const splitDuration = duration.split(':').reverse()
|
const splitDuration = duration.split(':').reverse()
|
||||||
let seconds = splitDuration[0]
|
let seconds = parseInt(splitDuration[0])
|
||||||
seconds += (splitDuration.length > 1) ? splitDuration[1] * 60 : 0
|
seconds += (splitDuration.length > 1) ? parseInt(splitDuration[1]) * 60 : 0
|
||||||
seconds += (splitDuration.length > 2) ? splitDuration[2] * 60 * 60 : 0
|
seconds += (splitDuration.length > 2) ? parseInt(splitDuration[2]) * 60 * 60 : 0
|
||||||
return seconds
|
return seconds
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue