mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 08:12:10 +03:00
feat: New select mode color
This commit is contained in:
parent
ed08c914eb
commit
8f8d3dbb76
3 changed files with 5 additions and 12 deletions
|
@ -3,7 +3,6 @@
|
||||||
row
|
row
|
||||||
wrap
|
wrap
|
||||||
class="ma-0 px-4 py-2 ml-0 "
|
class="ma-0 px-4 py-2 ml-0 "
|
||||||
:class="style"
|
|
||||||
>
|
>
|
||||||
<v-flex xs12>
|
<v-flex xs12>
|
||||||
<div class="caption grey--text">
|
<div class="caption grey--text">
|
||||||
|
@ -41,9 +40,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.getWebuiSettings().busyTorrentProperties.filter(i => i.active)
|
return this.getWebuiSettings().busyTorrentProperties.filter(i => i.active)
|
||||||
},
|
|
||||||
style() {
|
|
||||||
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
row
|
row
|
||||||
wrap
|
wrap
|
||||||
class="ma-0 pa-1"
|
class="ma-0 pa-1"
|
||||||
:class="style"
|
|
||||||
>
|
>
|
||||||
<v-flex xs12 class="ma-1" row>
|
<v-flex xs12 class="ma-1" row>
|
||||||
<span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;">
|
<span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;">
|
||||||
|
@ -87,11 +86,6 @@ export default {
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
mdiChevronUp, mdiChevronDown
|
mdiChevronUp, mdiChevronDown
|
||||||
}),
|
})
|
||||||
computed: {
|
|
||||||
style() {
|
|
||||||
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<v-card
|
<v-card
|
||||||
class="pointer noselect elevation-0 rounded-0 ma-0 pa-0"
|
class="pointer noselect elevation-0 rounded-0 ma-0 pa-0"
|
||||||
:class="isSelected ? 'info' : ''"
|
:class="style"
|
||||||
>
|
>
|
||||||
<v-layout
|
<v-layout
|
||||||
@click="evtClicnk"
|
@click="evtClicnk"
|
||||||
|
@ -33,6 +33,9 @@ export default {
|
||||||
...mapState(['selected_torrents', 'selectMode']),
|
...mapState(['selected_torrents', 'selectMode']),
|
||||||
isSelected() {
|
isSelected() {
|
||||||
return this.selected_torrents.includes(this.torrent.hash)
|
return this.selected_torrents.includes(this.torrent.hash)
|
||||||
|
},
|
||||||
|
style() {
|
||||||
|
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'v-chip' : ''}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue