mirror of
https://github.com/romancm/gamebrary
synced 2025-02-16 11:08:24 +00:00
Allow cards to be draggable even if sorting is enabled
This commit is contained in:
parent
15f4164758
commit
03dc56a38c
4 changed files with 3 additions and 13 deletions
|
@ -71,10 +71,6 @@ export default {
|
|||
? 'list'
|
||||
: this.list.name;
|
||||
},
|
||||
|
||||
isDraggable() {
|
||||
return !this.list.sortOrder || this.list.sortOrder === 'sortByCustom';
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
<div class="game-info">
|
||||
<a v-text="game.name" @click="openDetails" v-if="list.view !== 'covers'" />
|
||||
|
||||
<i
|
||||
v-if="isDraggable"
|
||||
class="fas fa-grip-vertical game-drag-handle"
|
||||
/>
|
||||
<i class="fas fa-grip-vertical game-drag-handle" />
|
||||
|
||||
<game-rating
|
||||
v-if="showGameRatings && list.view !== 'covers'"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div v-if="gameId && games[gameId]" :class="gameCardClass">
|
||||
<div class="game-info">
|
||||
<a v-text="game.name" @click="openDetails"/>
|
||||
<i v-if="isDraggable" class="fas fa-grip-vertical game-drag-handle" />
|
||||
<i class="fas fa-grip-vertical game-drag-handle" />
|
||||
|
||||
<game-rating
|
||||
v-if="showGameRatings && list.view !== 'covers'"
|
||||
|
|
|
@ -9,10 +9,7 @@
|
|||
@click="openDetails"
|
||||
/>
|
||||
|
||||
<i
|
||||
v-if="isDraggable"
|
||||
class="fas fa-grip-vertical game-drag-handle"
|
||||
/>
|
||||
<i class="fas fa-grip-vertical game-drag-handle" />
|
||||
|
||||
<game-rating
|
||||
v-if="showGameRatings"
|
||||
|
|
Loading…
Add table
Reference in a new issue