mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-10-23 03:06:43 +03:00
fix(progress): Remove striping on table view (#1490)
This commit is contained in:
parent
37dae2e02c
commit
3256b1b186
1 changed files with 2 additions and 17 deletions
|
@ -4,27 +4,12 @@ import { formatPercent } from '@/helpers'
|
|||
import { Torrent } from '@/types/vuetorrent'
|
||||
import { computed } from 'vue'
|
||||
|
||||
const props = defineProps<{ torrent: Torrent; title: string; value: string }>()
|
||||
|
||||
const isTorrentActive = computed(() => {
|
||||
return [
|
||||
TorrentState.UPLOADING,
|
||||
TorrentState.CHECKING_UP,
|
||||
TorrentState.FORCED_UP,
|
||||
TorrentState.ALLOCATING,
|
||||
TorrentState.DOWNLOADING,
|
||||
TorrentState.META_DL,
|
||||
TorrentState.CHECKING_DL,
|
||||
TorrentState.FORCED_DL,
|
||||
TorrentState.CHECKING_RESUME_DATA,
|
||||
TorrentState.MOVING
|
||||
].includes(props.torrent.state)
|
||||
})
|
||||
defineProps<{ torrent: Torrent; title: string; value: string }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<td>
|
||||
<v-progress-linear :model-value="torrent[value]" :max="1" :striped="isTorrentActive" :height="20" :color="`torrent-${torrent.state}`" rounded="sm" style="width: 10em">
|
||||
<v-progress-linear :model-value="torrent[value]" :max="1" :height="20" :color="`torrent-${torrent.state}`" rounded="sm" style="width: 10em">
|
||||
{{ formatPercent(torrent[value]) }}
|
||||
</v-progress-linear>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue