mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[web] Replace component with plain HTML component
This commit is contained in:
parent
9eb391be8b
commit
bb43de465f
@ -30,8 +30,9 @@
|
||||
v-text="track.item.artist"
|
||||
/>
|
||||
<h2 class="subtitle is-7 has-text-grey" v-text="track.item.album" />
|
||||
<progress-bar
|
||||
v-if="show_progress"
|
||||
<progress
|
||||
v-if="show_progress && track.item.seek_ms > 0"
|
||||
class="progress is-info"
|
||||
:max="track.item.length_ms"
|
||||
:value="track.item.seek_ms"
|
||||
/>
|
||||
@ -55,12 +56,11 @@
|
||||
|
||||
<script>
|
||||
import ModalDialogTrack from '@/components/ModalDialogTrack.vue'
|
||||
import ProgressBar from '@/components/ProgressBar.vue'
|
||||
import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ListTracks',
|
||||
components: { ModalDialogTrack, ProgressBar },
|
||||
components: { ModalDialogTrack },
|
||||
|
||||
props: ['tracks', 'uris', 'expression', 'show_progress', 'show_icon'],
|
||||
emits: ['play-count-changed'],
|
||||
@ -99,4 +99,8 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style scoped>
|
||||
.progress {
|
||||
height: 0.25rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,21 +0,0 @@
|
||||
<template>
|
||||
<progress
|
||||
v-if="value > 0"
|
||||
class="progress is-info"
|
||||
:value="value"
|
||||
:max="max"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ProgressBar',
|
||||
props: ['max', 'value']
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.progress {
|
||||
height: 0.25rem;
|
||||
}
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user