mirror of
https://github.com/romancm/gamebrary
synced 2025-03-08 16:47:13 +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
|
<b-dropdown-item
|
||||||
v-for="board in boards"
|
v-for="board in boards"
|
||||||
:key="board.id"
|
: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 }}
|
{{ board.name }}
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
|
@ -41,11 +42,10 @@
|
||||||
:text="activeBoardList.name"
|
:text="activeBoardList.name"
|
||||||
>
|
>
|
||||||
<b-dropdown-item
|
<b-dropdown-item
|
||||||
v-for="(list, index) in activeBoard.lists"
|
v-for="(list, listIndex) in activeBoard.lists"
|
||||||
:key="list.id"
|
: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 }}
|
{{ list.name }}
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
</b-dropdown>
|
</b-dropdown>
|
||||||
|
@ -138,10 +138,6 @@ export default {
|
||||||
query(value) {
|
query(value) {
|
||||||
this.search(value);
|
this.search(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
boardId(value) {
|
|
||||||
console.log('board changed', value);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue