Skip to content

Commit

Permalink
feat: New select mode color
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ximuel committed Apr 22, 2021
1 parent ed08c91 commit 8f8d3db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/components/Torrent/DesktopCard.vue
Expand Up @@ -3,7 +3,6 @@
row
wrap
class="ma-0 px-4 py-2 ml-0 "
:class="style"
>
<v-flex xs12>
<div class="caption grey--text">
Expand Down Expand Up @@ -41,9 +40,6 @@ export default {
}
return this.getWebuiSettings().busyTorrentProperties.filter(i => i.active)
},
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
}
}
}
Expand Down
8 changes: 1 addition & 7 deletions src/components/Torrent/MobileCard.vue
Expand Up @@ -3,7 +3,6 @@
row
wrap
class="ma-0 pa-1"
:class="style"
>
<v-flex xs12 class="ma-1" row>
<span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;">
Expand Down Expand Up @@ -87,11 +86,6 @@ export default {
},
data: () => ({
mdiChevronUp, mdiChevronDown
}),
computed: {
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
}
}
})
}
</script>
5 changes: 4 additions & 1 deletion src/components/Torrent/Torrent.vue
@@ -1,7 +1,7 @@
<template>
<v-card
class="pointer noselect elevation-0 rounded-0 ma-0 pa-0"
:class="isSelected ? 'info' : ''"
:class="style"
>
<v-layout
@click="evtClicnk"
Expand Down Expand Up @@ -33,6 +33,9 @@ export default {
...mapState(['selected_torrents', 'selectMode']),
isSelected() {
return this.selected_torrents.includes(this.torrent.hash)
},
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'v-chip' : ''}`
}
},
methods: {
Expand Down

0 comments on commit 8f8d3db

Please sign in to comment.