Allow cards to be draggable even if sorting is enabled

This commit is contained in:
Roman Cervantes 2019-06-21 12:13:59 -07:00
parent 15f4164758
commit 03dc56a38c
4 changed files with 3 additions and 13 deletions

View file

@ -71,10 +71,6 @@ export default {
? 'list'
: this.list.name;
},
isDraggable() {
return !this.list.sortOrder || this.list.sortOrder === 'sortByCustom';
},
},
methods: {

View file

@ -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'"

View file

@ -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'"

View file

@ -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"