feat: better display the reading status for episodes (in episodes list / podcast section) (close #51)
This commit is contained in:
parent
b63e1175a0
commit
87315b1221
@ -19,6 +19,11 @@
|
|||||||
<template #subname>
|
<template #subname>
|
||||||
{{ episode.duration }}
|
{{ episode.duration }}
|
||||||
</template>
|
</template>
|
||||||
|
<template #indicator>
|
||||||
|
<NcProgressBar v-if="episode.action && episode.action.action === 'PLAY'"
|
||||||
|
class="progress"
|
||||||
|
:value="episode.action.position * 100 / episode.action.total" />
|
||||||
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<NcActionButton v-if="!isCurrentEpisode(episode)" @click="load(episode)">
|
<NcActionButton v-if="!isCurrentEpisode(episode)" @click="load(episode)">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
@ -48,7 +53,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { NcActionButton, NcAvatar, NcListItem, NcModal } from '@nextcloud/vue'
|
import { NcActionButton, NcAvatar, NcListItem, NcModal, NcProgressBar } from '@nextcloud/vue'
|
||||||
import Loading from '../Atoms/Loading.vue'
|
import Loading from '../Atoms/Loading.vue'
|
||||||
import Modal from '../Atoms/Modal.vue'
|
import Modal from '../Atoms/Modal.vue'
|
||||||
import PlayButton from 'vue-material-design-icons/Play.vue'
|
import PlayButton from 'vue-material-design-icons/Play.vue'
|
||||||
@ -68,6 +73,7 @@ export default {
|
|||||||
NcAvatar,
|
NcAvatar,
|
||||||
NcListItem,
|
NcListItem,
|
||||||
NcModal,
|
NcModal,
|
||||||
|
NcProgressBar,
|
||||||
PlayButton,
|
PlayButton,
|
||||||
StopButton,
|
StopButton,
|
||||||
},
|
},
|
||||||
@ -121,4 +127,8 @@ export default {
|
|||||||
.ended {
|
.ended {
|
||||||
opacity: .4;
|
opacity: .4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
margin-top: .4rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user