mirror of
https://github.com/romancm/gamebrary
synced 2025-02-01 20:23:26 +00:00
search page, disable boards without lists
This commit is contained in:
parent
a18cdefe80
commit
41907236d7
1 changed files with 4 additions and 8 deletions
|
@ -27,7 +27,8 @@
|
|||
<b-dropdown-item
|
||||
v-for="board in boards"
|
||||
:key="board.id"
|
||||
:to="{ name: 'search', query: { boardId: board.id, listIndex: boardListIndex } }"
|
||||
:disabled="!board.lists.length"
|
||||
:to="{ name: 'search', query: { boardId: board.id, listIndex: 0 } }"
|
||||
>
|
||||
{{ board.name }}
|
||||
</b-dropdown-item>
|
||||
|
@ -41,11 +42,10 @@
|
|||
:text="activeBoardList.name"
|
||||
>
|
||||
<b-dropdown-item
|
||||
v-for="(list, index) in activeBoard.lists"
|
||||
v-for="(list, listIndex) in activeBoard.lists"
|
||||
:key="list.id"
|
||||
:to="{ name: 'search', query: { boardId: activeBoard.id, listIndex: index } }"
|
||||
:to="{ name: 'search', query: { boardId: activeBoard.id, listIndex } }"
|
||||
>
|
||||
<!-- :to="{ name: 'search', query: { boardId: board.id, listIndex: boardListIndex } }" -->
|
||||
{{ list.name }}
|
||||
</b-dropdown-item>
|
||||
</b-dropdown>
|
||||
|
@ -138,10 +138,6 @@ export default {
|
|||
query(value) {
|
||||
this.search(value);
|
||||
},
|
||||
|
||||
boardId(value) {
|
||||
console.log('board changed', value);
|
||||
},
|
||||
},
|
||||
|
||||
async mounted() {
|
||||
|
|
Loading…
Reference in a new issue